Last active
August 29, 2015 14:01
-
-
Save mylesjao/539fdd222b21c9496b10 to your computer and use it in GitHub Desktop.
get script file path and set to APP_HOME environment variable
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 | |
SCRIPT_DIR=$(readlink -f $(dirname ${BASH_SOURCE[0]})) | |
# assume this script is in APP_HOME/bin directory | |
cd $SCRIPT_DIR/.. | |
APP_HOME="`pwd -P`" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment