Files
voidrice/.local/bin/ifinstalled
2020-02-08 18:43:37 -05:00

5 lines
174 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 ;}