summaryrefslogtreecommitdiff
path: root/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in
index 0d4361cc..53f89ce6 100644
--- a/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in
@@ -30,6 +30,8 @@ lint_pkgbuild_functions+=('lint_pkgbase')
lint_pkgbase() {
+ local ret=0
+
if [[ ${pkgbase:0:1} = "-" ]]; then
error "$(gettext "%s is not allowed to start with a hyphen.")" "pkgname"
return 1
@@ -43,4 +45,6 @@ lint_pkgbase() {
'pkgbase' "${i//[[:alnum:]+_.@-]}"
ret=1
fi
+
+ return $ret
}