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?
Asked by Alexander Mills
(10744 rep)
Oct 19, 2018, 06:52 AM
Last activity: Oct 23, 2018, 01:14 AM
Last activity: Oct 23, 2018, 01:14 AM