voidrice/.scripts/tools/ifinstalled
2019-01-26 18:11:22 -05:00

3 lines
193 B
Bash
Executable file

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