Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created August 5, 2014 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stbenjam/6e3e223db2d5365886b6 to your computer and use it in GitHub Desktop.
Save stbenjam/6e3e223db2d5365886b6 to your computer and use it in GitHub Desktop.
source ./foo.sh
. ./foo.sh
if [[ "${BASH_SOURCE[0]}" == "${0}" ]];
then
echo "This script should not be executed directly, use foreman-debug instead."
exit 1
fi
echo "foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment