This commit is contained in:
zhangkun9038@dingtalk.com 2023-03-02 01:41:04 +08:00
parent 5e4e7b3053
commit d709616088

View File

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