voidrice/.scripts/tools/ifinstalled
2019-04-17 13:05:42 +00:00

3 lines
173 B
Bash
Executable file

#!/bin/sh
# If $1 command is not available, error code and notify.
command -v "$1" >/dev/null || { notify-send "📦 $1" "must be installed for this function." && exit 1 ;}