ambevar-dotfiles/.emacs.d/snippets/sh-mode/check

13 lines
228 B
Plaintext

# name: check for available commands
# key: check
# --
check()
{
for i ; do
if ! command -v \$i >/dev/null 2>&1; then
echo "\'$i' not found in PATH. Exiting." >&2
exit 1
fi
done
}