Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Echo a command was not found in the BASH environment
command -v foo >/dev/null 2>&1 || { echo >&2 "I require foo but it's not installed. Aborting."; exit 1; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.