Created
August 31, 2016 06:40
-
-
Save dracorp/52ef1340a1fc419a0b43af77c77d6369 to your computer and use it in GitHub Desktop.
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 [ "${BASH_SOURCE[0]}" == "$0" ] || [ "${.sh.file}" == "$0" ] || [ "${(%):-%x}" == "$0" ]; then | |
# invoked as script | |
printf "You should source this script not invoke as program\n" >&2 | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment