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"
|
distPath="$GOPATH/src/tank/dist"
|
||||||
|
|
||||||
# if a directory
|
# if a directory
|
||||||
if [ ! -d $distPath ] ; then
|
if [ -d $distPath ] ; then
|
||||||
echo "clear $distPath"
|
echo "clear $distPath"
|
||||||
rm -rf $distPath
|
rm -rf $distPath
|
||||||
fi
|
fi
|
||||||
@ -54,7 +54,7 @@ echo "copying cmd tank"
|
|||||||
cp "$GOPATH/bin/tank" $distPath
|
cp "$GOPATH/bin/tank" $distPath
|
||||||
|
|
||||||
echo "copying build"
|
echo "copying build"
|
||||||
cp -r "$GOPATH/src/tank/build" $distPath
|
cp -r "$GOPATH/src/tank/build/." $distPath
|
||||||
|
|
||||||
cd $PRE_DIR
|
cd $PRE_DIR
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user