dotfiles/.local/bin/ifinstalled
2019-12-04 16:57:15 +01:00

4 lines
182 B
Bash
Executable file

#!/usr/bin/env 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 ;}