voidrice/.scripts/tools/ifinstalled

4 lines
178 B
Text
Raw Normal View History

2019-01-13 02:56:13 +00:00
#!/bin/sh
# If $1 command is not available, error code and notify.
command -v "$1" >/dev/null || { notify-send "📦 <b>$1</b> must be installed for this function." && exit 1 ;}