فهرست منبع

fix(build): make build run well

1. remove unnecessary target directory
2. comparison update to run on linux
Yicheng Qin 12 سال پیش
والد
کامیت
e624d4ef33
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      build

+ 2 - 2
build

@@ -7,10 +7,10 @@ fi
 
 export GOBIN=${PWD}/bin
 export GOPATH=${PWD}
-export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log ./machines main.go ./metrics ./mod ./server ./store ./tests"
+export GOFMTPATH="./bench ./config ./discovery ./etcd ./error ./http ./log main.go ./metrics ./mod ./server ./store ./tests"
 
 # Don't surprise user by formatting their codes by stealth
-if [ "$1" == "--fmt" ]; then
+if [ "--fmt" = "$1" ]; then
 	gofmt -s -w -l $GOFMTPATH
 fi