libmakepkg: fix pkgver checking
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
6fdc589fc6
commit
960b64553d
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue