Skip to content

Instantly share code, notes, and snippets.

@jmewes
Created January 21, 2017 16:43
Show Gist options
  • Save jmewes/e3a5887abffeb1746e4caf2d4832830d to your computer and use it in GitHub Desktop.
Save jmewes/e3a5887abffeb1746e4caf2d4832830d to your computer and use it in GitHub Desktop.
Get script directory in a Bash script
SCRIPT_DIR=$(dirname "$0")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment