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
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
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 GOPATH="$(cd $(dirname "$BASH_SOURCE") && pwd)"
is there a shorter way to get the containing dir of build.sh?
bash shell pwd basename dirname
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
bash shell pwd basename dirname
asked 3 mins ago


Alexander Mills
2,0671133
2,0671133
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476486%2fget-container-directory-more-easily%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password