Skip to content

Instantly share code, notes, and snippets.

@jmewes
Created January 21, 2017 16:43
Show Gist options
  • Select an option

  • Save jmewes/e3a5887abffeb1746e4caf2d4832830d to your computer and use it in GitHub Desktop.

Select an option

Save jmewes/e3a5887abffeb1746e4caf2d4832830d to your computer and use it in GitHub Desktop.
Get script directory in a Bash script
SCRIPT_DIR=$(dirname "$0")
@jmewes

jmewes commented Jan 21, 2017

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment