Created
November 20, 2015 11:38
-
-
Save illucent/829db3ef4c6ecfbe9ae4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| 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