Skip to content

Instantly share code, notes, and snippets.

@bbl
Created August 22, 2019 12:33
Show Gist options
  • Save bbl/0400691db94ea5bb806bf9cd360f31de to your computer and use it in GitHub Desktop.
Save bbl/0400691db94ea5bb806bf9cd360f31de to your computer and use it in GitHub Desktop.
Bash get script directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment