Created
April 29, 2019 20:02
-
-
Save jgwill/f12ca5eddeff2a8dd3bbe6c2cbb2fc82 to your computer and use it in GitHub Desktop.
Echo a command was not found in the BASH environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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