1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-17 17:47:46 +01:00
dotfiles/.local/bin/tools/ifinstalled
2019-09-13 10:51:43 +02:00

4 lines
173 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 ;}