diff --git a/.local/bin/scripts/isinstalled b/.local/bin/scripts/isinstalled new file mode 100755 index 0000000..4ee4b17 --- /dev/null +++ b/.local/bin/scripts/isinstalled @@ -0,0 +1,5 @@ +#!/bin/sh + +# Check if package is installed (pacman based distros) or return error code. + +pacman -Qq "$1" 1>/dev/null 2>&1 || exit 1