pacman/scripts/libmakepkg/util
morganamilo 2c91d08e62 libmakepkg: fix linting arrays of empty strings
[[ ${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>
2018-10-21 19:08:03 +10:00
..
compress.sh.in makepkg: add support for the zst format 2018-09-19 18:15:29 +10:00
error.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
message.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
option.sh.in libmakepkg/util/option: Refactor checking to reduce code duplication 2018-08-10 12:37:20 +10:00
parseopts.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
pkgbuild.sh.in libmakepkg: fix linting arrays of empty strings 2018-10-21 19:08:03 +10:00
source.sh.in Update coyrights for 2018 2018-03-14 13:31:31 +10:00
util.sh.in scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00