summaryrefslogtreecommitdiff
path: root/src/aur
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-05-29 21:36:55 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 19:44:27 -0600
commit01b1059331fd7d85bc25e5a9c049216ce74eb877 (patch)
treea8e671d554f19cdee56f7165d662b49e7ced5bd5 /src/aur
parent2a10613b5ffd2118cc9302e02942f53d63eff121 (diff)
aur: report if pkgbuild-check-nonfree failed
Diffstat (limited to 'src/aur')
-rwxr-xr-xsrc/aur11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/aur b/src/aur
index 14882cd..8a8465b 100755
--- a/src/aur
+++ b/src/aur
@@ -87,11 +87,12 @@ main() {
################################################################
- if ! pkgbuild-check-nonfree; then
- if [[ $? = 15 ]]; then
- warning "This PKGBUILD links to known unfree packages"
- fi
- fi
+ pkgbuild-check-nonfree
+ case $? in
+ 0) :;;
+ 15) warning "This PKGBUILD links to known unfree packages";;
+ *) warning "pkgbuild-check-nonfree failed to run";;
+ esac
################################################################