index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aaron Campbell <aaron@monkey.org> | 2015-11-04 15:43:12 -0400 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-05 11:55:17 +1000 |
commit | bf0e8e6b435f0ab28745d6f6d3279dc66ac3e9ef (patch) | |
tree | 5cdee677076ff0da4688241af7846ba6052190d8 | |
parent | 8fa02036c3175f4cb1e837b6da5281520524ccba (diff) |
-rw-r--r-- | scripts/libmakepkg/lint_pkgbuild/source.sh.in | 2 |
diff --git a/scripts/libmakepkg/lint_pkgbuild/source.sh.in b/scripts/libmakepkg/lint_pkgbuild/source.sh.in index c3272993..b5f45863 100644 --- a/scripts/libmakepkg/lint_pkgbuild/source.sh.in +++ b/scripts/libmakepkg/lint_pkgbuild/source.sh.in @@ -32,7 +32,7 @@ lint_pkgbuild_functions+=('lint_source') lint_source() { local idx=("${!source[@]}") - if (( ${#source[*]} > 0 && (idx[-1] + 1) != ${#source[*]} )); then + if (( ${#source[*]} > 0 && (${idx[@]: -1} + 1) != ${#source[*]} )); then error "$(gettext "Sparse arrays are not allowed for source")" return 1 fi |