diff --git a/testdata/move_to_gopath.bash b/testdata/move_to_gopath.bash index 5ecd78e..739ae38 100644 --- a/testdata/move_to_gopath.bash +++ b/testdata/move_to_gopath.bash @@ -4,10 +4,8 @@ set -euxo pipefail shopt -s nullglob globstar # set GOPATH if empty (travis sets it, but useful for humans) -if [ -z "$GOPATH" ]; then -GOPATH=$(go env GOPATH) +GOPATH="$(go env GOPATH)" export GOPATH -fi mkdir -p "$GOPATH"/src/github.com/"$CIRRUS_REPO_OWNER" cp -av "$PWD" "$GOPATH"/src/github.com/"$CIRRUS_REPO_FULL_NAME"