Created
April 27, 2015 18:05
-
-
Save rtfpessoa/510c0ae46874ff6ff325 to your computer and use it in GitHub Desktop.
Find current script directory (shell)
This file contains hidden or 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/sh | |
# | |
# Find current script directory | |
# | |
ScriptDirectory="$( cd "$( dirname "$0" )" && pwd )" | |
echo "This script is currently @ $ScriptDirectory" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment