summaryrefslogtreecommitdiff
path: root/aur
diff options
context:
space:
mode:
Diffstat (limited to 'aur')
-rwxr-xr-xaur6
1 files changed, 4 insertions, 2 deletions
diff --git a/aur b/aur
index 38b2e2e..44ac650 100755
--- a/aur
+++ b/aur
@@ -19,13 +19,15 @@ for _pkg in ${@}; do
source PKGBUILD
pkgbuild-check-nonfree || {
- warning "This PKGBUILD links to known unfree packages"
+ if [ $? -eq 15 ]; then
+ warning "This PKGBUILD links to known unfree packages"
+ fi
}
msg2 "Checking license..."
free=0
for _license in ${license[@]}; do
- if ! -d /usr/share/licenses/common/$_license; then
+ if [ ! -d /usr/share/licenses/common/$_license ]; then
warning "License $_license is not a common license"
free=1
fi