![]() [[ ${array[@]} ]] will resolve to false if array only contains empty strings. This means that values such as "depends=('')" can be inserted into a pkgbuild and bypass the linting. This causes makepkg to successfully build the package while pacman refuses to install it because of the unmet dependency on ''. Instead check the length of the array. Signed-off-by: morganamilo <morganamilo@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> |
||
---|---|---|
.. | ||
compress.sh.in | ||
error.sh.in | ||
message.sh.in | ||
option.sh.in | ||
parseopts.sh.in | ||
pkgbuild.sh.in | ||
source.sh.in | ||
util.sh.in |