summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
################################################################