Emacs shell snippet: notcmd
parent
6c7add0ac0
commit
9cb4840fca
|
@ -0,0 +1,7 @@
|
|||
# name: ! command ...
|
||||
# key: notcmd
|
||||
# --
|
||||
if ! command -v $1 >/dev/null 2>&1; then
|
||||
echo >&2 "'$1' not found in PATH. Exiting."
|
||||
exit 1
|
||||
fi
|
Loading…
Reference in New Issue