mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
libmakepkg: fix pkgver checking
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6fdc589fc6
commit
960b64553d
@ -30,7 +30,7 @@ lint_pkgbuild_functions+=('lint_pkgver')
|
||||
|
||||
|
||||
check_pkgver() {
|
||||
if [[ -z ${pkgver} ]]; then
|
||||
if [[ -z $1 ]]; then
|
||||
error "$(gettext "%s is not allowed to be empty.")" "pkgver"
|
||||
return 1
|
||||
fi
|
||||
@ -47,5 +47,5 @@ lint_pkgver() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
check_pkgver
|
||||
check_pkgver $pkgver
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user