diff options
Diffstat (limited to 'is_built')
-rwxr-xr-x | is_built | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/is_built b/is_built new file mode 100755 index 0000000..9dc5d1c --- /dev/null +++ b/is_built @@ -0,0 +1,7 @@ +#!/bin/bash +# Detect is a package is installed or in a database + +pacman -Qqi $1 >/dev/null 2>&1 || \ +pacman -Sqi $1 >/dev/null 2>&1 + +exit $? |