summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-10-27 20:44:57 +1000
committerAllan McRae <allan@archlinux.org>2015-10-27 20:44:57 +1000
commit960b64553db7c738202d5108abff77af0bdb87b5 (patch)
treebc7ed327c21d9db1523d3386838cf9d0d9dceb12 /scripts
parent6fdc589fc6d5598c2ce3f3e029594417dcb25b39 (diff)
downloadpacman-960b64553db7c738202d5108abff77af0bdb87b5.tar.xz
libmakepkg: fix pkgver checking
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
index 3fa4ff7d..265a3fdc 100644
--- a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
@@ -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
}