Skip to content

Instantly share code, notes, and snippets.

@illucent
Created November 20, 2015 11:38
Show Gist options
  • Select an option

  • Save illucent/829db3ef4c6ecfbe9ae4 to your computer and use it in GitHub Desktop.

Select an option

Save illucent/829db3ef4c6ecfbe9ae4 to your computer and use it in GitHub Desktop.
#!/bin/bash
m () {
echo "$0: $@"
}
e () {
echo "Error: $0: $@"
exit 1
}
if [[ "$ENVVAR" == "" ]]; then
e "ENVVAR is unset."
else
m "All fine, proceeding..."
fi
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment