initial commit
This commit is contained in:
11
bin/nomarchy-pkg-missing
Executable file
11
bin/nomarchy-pkg-missing
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Returns true if any of the named packages are missing from the system (or false if they're all there).
|
||||
|
||||
for pkg in "$@"; do
|
||||
if ! pacman -Q "$pkg" &>/dev/null; then
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
exit 1
|
||||
Reference in New Issue
Block a user