Created
June 29, 2016 11:24
-
-
Save Ham5ter/a852be69aa66a32a4d2e919f4b22858a to your computer and use it in GitHub Desktop.
This sets the variable "SCRIPT_DIRECTORY" to the Path, the Script is in.
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 | |
# This sets the variable "SCRIPT_DIRECTORY" to the Path, the Script is in. | |
SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment