Fix the -d bug in the build.sh.
This commit is contained in:
parent
6fc12f3927
commit
deaeb39618
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user