voidrice/.local/bin/ifinstalled

4 lines
181 B
Text
Raw Normal View History

2019-08-18 16:28:11 +00:00
#!/usr/bin/env sh
2019-01-13 02:56:13 +00:00
# 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 ;}