From 0c7c6471d82394b37d0e1beef22f78a07ecaff48 Mon Sep 17 00:00:00 2001 From: hxsherry <1053288784@qq.com> Date: Mon, 29 Jan 2018 00:01:12 +0800 Subject: [PATCH] Fix a shell logic bug. --- build/pack/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/pack/build.sh b/build/pack/build.sh index 0ef24ff..607eef8 100755 --- a/build/pack/build.sh +++ b/build/pack/build.sh @@ -15,7 +15,8 @@ cd $GOPATH # echo "go get golang.org/x" # go get golang.org/x -if [ -z "$GOPATH/src/golang.org" ] ; then +if [ ! -d "$GOPATH/src/golang.org" ] ; then + echo "git clone https://github.com/eyebluecn/golang.org.git" git clone https://github.com/eyebluecn/golang.org.git $GOPATH/src/golang.org fi