Created
April 23, 2013 16:08
-
-
Save mhuckaby/5444964 to your computer and use it in GitHub Desktop.
Exit script if environment var is not set
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
if [ "$ENV" == "" ] | |
then | |
echo "ENV must be set" | |
exit | |
else | |
echo "ENV is $ENV" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment