This commit is contained in:
zhangkun9038@dingtalk.com 2023-03-02 01:17:06 +08:00
parent 9f9eaaaf19
commit f4a2cbd5f4

View File

@ -60,12 +60,13 @@ function init(){
cd $workPath cd $workPath
if [ ! -f "$fileName" ];then if [ ! -f "$fileName" ];then
echo "file $fileName not exist!" echo "file $fileName not exist!"
# mkdir dist cd $projectPath
# echo "helo" > helo.txt mkdir dist
# mv helo.txt dist echo "helo" > helo.txt
# zip -r $fileName dist mv helo.txt dist
exit 0 zip -r $fileName dist
fi fi
cd $workPath
if [ ! -d "$projectPath" ]; then if [ ! -d "$projectPath" ]; then
echo "path $projectPath exist! " echo "path $projectPath exist! "
exit 0 exit 0