summaryrefslogtreecommitdiffstats
path: root/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/make.sh b/make.sh
index fc920f3..132657a 100755
--- a/make.sh
+++ b/make.sh
@@ -22,7 +22,6 @@ function candz() {
D=${D}.exe
fi
go build -o $D ./cmd/gotop >> build.log 2>&1
- unset GOOS GOARCH GOARM CGO_ENABLED
if [[ $? -ne 0 ]]; then
printenv | grep GO >> build.log
echo "############### FAILED ###############" >> build.log
@@ -31,6 +30,7 @@ function candz() {
echo FAILED $OUT
return
fi
+ unset GOOS GOARCH GOARM CGO_ENABLED
cd build
zip $(basename $OUT) $(basename $D) >> ../build.log 2>&1
cd ..