Checking if a program is installed
Closed this issue · 2 comments
cjoshmartin commented
command -v foo >/dev/null 2>&1 || { echo "I require foo but it's not installed. Aborting." >&2; exit 1; }
cjoshmartin commented
cjoshmartin commented
checking if a folder exist: https://stackoverflow.com/questions/59838/check-if-a-directory-exists-in-a-shell-script