diff options
author | morganamilo <morganamilo@gmail.com> | 2018-10-16 19:49:23 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-10-21 11:08:03 +0200 |
commit | 2c91d08e62dd13979192df4a0b2ca76bde87cfd0 (patch) | |
tree | 1c9c87c8091bc26083555f6a7c17a2c6cd44fd43 /scripts/libmakepkg/source/file.sh.in | |
parent | 79a528735ee198ac880b65d946cfde9181872b44 (diff) | |
download | pacman-2c91d08e62dd13979192df4a0b2ca76bde87cfd0.tar.gz pacman-2c91d08e62dd13979192df4a0b2ca76bde87cfd0.tar.xz |
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>
Diffstat (limited to 'scripts/libmakepkg/source/file.sh.in')
0 files changed, 0 insertions, 0 deletions