From deaeb39618b08f5cdcd2fe93b8d3e943cf1a32e7 Mon Sep 17 00:00:00 2001 From: Zic Date: Sat, 23 Dec 2017 22:55:13 +0800 Subject: [PATCH] Fix the -d bug in the build.sh. --- build/script/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/script/build.sh b/build/script/build.sh index d544c08..b5391e2 100755 --- a/build/script/build.sh +++ b/build/script/build.sh @@ -42,7 +42,7 @@ echo "packaging..." distPath="$GOPATH/src/tank/dist" # if a directory -if [ ! -d $distPath ] ; then +if [ -d $distPath ] ; then echo "clear $distPath" rm -rf $distPath fi @@ -54,7 +54,7 @@ echo "copying cmd tank" cp "$GOPATH/bin/tank" $distPath echo "copying build" -cp -r "$GOPATH/src/tank/build" $distPath +cp -r "$GOPATH/src/tank/build/." $distPath cd $PRE_DIR