Skip to content

Instantly share code, notes, and snippets.

@svevang
Created August 2, 2018 16:43
Show Gist options
  • Save svevang/df2285d6ee23c9949108775e97038e8d to your computer and use it in GitHub Desktop.
Save svevang/df2285d6ee23c9949108775e97038e8d to your computer and use it in GitHub Desktop.
find the location of the bash script
# Here Dir points to the directory containing this bash script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment