Switch from returns to exit codes
This commit is contained in:
1 parent
9e5b4fc871
commit
4ee48dd238
5 files changed
+10
-10
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
for pkg in "$@"; do
|
||||
pacman -Q "$pkg" &>/dev/null || return 1
|
||||
pacman -Q "$pkg" &>/dev/null || exit 1
|
||||
done
|
||||
|
||||
return 0
|
||||
exit 0
|
||||
Reference in new issue
Block a user