Get container directory more easily
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I have a bash script here: $GOPATH/ src/ build.sh and in build.sh I have: export GOPATH="$(cd $(dirname "$BASH_SOURCE") && pwd)" is there a shorter way to get the containing dir of build.sh? bash shell pwd basename dirname share asked 3 mins ago Alexander Mills 2,067 11 33 add a comment  | up vote 0 down vote favorite I have a bash script here: $GOPATH/ src/ build.sh and in build.sh I have: export GOPATH="$(cd $(dirname "$BASH_SOURCE") && pwd)" is there a shorter way to get the containing dir of build.sh? bash shell pwd basename dirname share asked 3 mins ago Alexander Mills 2,067 11 33 add a comment  | up vote 0 down vote favorite up vote 0 down vote favorite I have a bash script here: $GOPATH/ src/ build.sh and in build.sh I have: export GOPAT...