summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-29 22:19:13 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 19:44:27 -0600
commit9c97b9cca9a8ff6fd1e1994b9429ee9ba1221623 (patch)
tree0b221f52b2da93de5ee42c299d6f9de7551156f3
parent35e9dd7eb25ff4ec12f0a59c586f0a01c9db5dcd (diff)
pkgbuild-check-nonfree: exit with 1 when not a PKGBUILD
-rwxr-xr-xsrc/pkgbuild-check-nonfree2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkgbuild-check-nonfree b/src/pkgbuild-check-nonfree
index be9d20d..7c3d2d9 100755
--- a/src/pkgbuild-check-nonfree
+++ b/src/pkgbuild-check-nonfree
@@ -36,7 +36,7 @@ check_deps() (
local pkgbuild=$1
. "$pkgbuild"
if [[ -z "$pkgname" ]]; then
- return 1 # not a PKGBUILD
+ exit 1 # not a PKGBUILD
fi
msg2 "Looking for unfree dependencies of ${pkgbase:-${pkgname[0]}} $(get_full_version)"