Created
March 25, 2012 16:32
-
-
Save mitchellh/2198107 to your computer and use it in GitHub Desktop.
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
# Get the directory where this script is. This will also resolve | |
# any symlinks in the directory/script, so it will be the fully | |
# resolved path. | |
SOURCE="${BASH_SOURCE[0]}" | |
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done | |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" | |
# Useful variables | |
EMBEDDED_DIR=${DIR}/../embedded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment