Add 'isinstalled' script

This commit is contained in:
Wiktor Zykubek 2020-05-13 10:57:56 +02:00
parent 1da39e0f87
commit 7a9a483438

5
.local/bin/scripts/isinstalled Executable file
View File

@ -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