Skip to content

Commit 1b646f3

Browse files
committed
fix env null gopath
1 parent d01398c commit 1b646f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

env.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/usr/local/bin/bash
22

3-
export GOPATH="${GOPATH}:"$(pwd)
3+
if [ -z "$GOPATH" ]
4+
then
5+
export GOPATH=$(pwd)
6+
else
7+
export GOPATH="${GOPATH}:"$(pwd)
8+
fi

0 commit comments

Comments
 (0)