Get current directory of script file in shell script
DIR=$( cd “$( dirname “${BASH_SOURCE[0]}” )”&& pwd ) Creds: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
DIR=$( cd “$( dirname “${BASH_SOURCE[0]}” )”&& pwd ) Creds: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
You must be logged in to post a comment.