Comment Comment by reacweb In bash, there is the build-in command named "command". I have used it for the same purpose, like in: command -v brew >/dev/null && brew install jq parent reacweb 7 years ago