cjoshmartin/Dotfiles

Checking if a program is installed

Closed this issue · 2 comments

command -v foo >/dev/null 2>&1 || { echo "I require foo but it's not installed. Aborting." >&2; exit 1; }