Add 'isinstalled' script

This commit is contained in:
samedamci 2020-05-13 10:57:56 +02:00
parent ad628f6e62
commit cff956e2bf
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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