Skip to content

Instantly share code, notes, and snippets.

@mhuckaby
Created April 23, 2013 16:08
Show Gist options
  • Save mhuckaby/5444964 to your computer and use it in GitHub Desktop.
Save mhuckaby/5444964 to your computer and use it in GitHub Desktop.
Exit script if environment var is not set
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