Fix the -d bug in the build.sh.

This commit is contained in:
Zic 2017-12-23 22:55:13 +08:00
parent 6fc12f3927
commit deaeb39618

View File

@ -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