Created
January 4, 2021 08:01
-
-
Save mholtzhausen/a286f5d1851b92dfdf5abadcf8a6fc66 to your computer and use it in GitHub Desktop.
Get bash script dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
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