Skip to content

Commit

Permalink
Merge pull request #5 from inkel/restore-gobin
Browse files Browse the repository at this point in the history
Fix restoring GOBIN
  • Loading branch information
Pablo Astigarraga committed Mar 9, 2014
2 parents cce784c + 2888b1b commit f02b297
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/gvp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ case "$1" in
GVP_OLD_GOPATH=$GOPATH
GVP_OLD_GOBIN=$GOBIN
GVP_OLD_PATH=$PATH
export GVP_OLD_GOPATH PATH
export GVP_OLD_GOPATH GVP_OLD_GOBIN PATH

GVP_NAME=$(pwd | sed -E "s/^.*\/(.*)$/\\1/")
GOBIN="$GVP_DIR/bin":$GOBIN
Expand All @@ -72,7 +72,7 @@ case "$1" in
"out")
if [[ -z $GVP_NAME ]]; then kill -INT $$; fi

GOBIN=$GVP_OLD_BIN_PATH
GOBIN=$GVP_OLD_GOBIN
GOPATH=$GVP_OLD_GOPATH
PATH=$GVP_OLD_PATH

Expand Down

0 comments on commit f02b297

Please sign in to comment.