Skip to content

Instantly share code, notes, and snippets.

@cdemers
Created August 3, 2017 18:56
Show Gist options
  • Save cdemers/c726ec754e98bdcbed402fa7b3b5b2b2 to your computer and use it in GitHub Desktop.
Save cdemers/c726ec754e98bdcbed402fa7b3b5b2b2 to your computer and use it in GitHub Desktop.
Warning for scripts that should be sourced, instead of executed.
[[ $_ == $0 ]] && echo "This script should probably be sourced."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment