Commit 2067c0f8 authored by 谢卓城's avatar 谢卓城

优化删除git逻辑

parent dd20c95c
......@@ -25,7 +25,7 @@ echo "########## 开始下载小程序模板 ##########"
git clone http://git.changein.cn/xzc168520/miniprogramtemplate.git
# 删除下载小程序模板的.git
rm -rf .git
find . -name ".git" | xargs rm -Rf
# 移动小程序模板的文件并删除空文件夹
mv {miniprogramtemplate/*,miniprogramtemplate/.*} ./
......@@ -109,7 +109,6 @@ fi
# 初始化 git
git init
git remote remove origin
echo "########## 启动小程序实时服务 ##########"
npm run dev
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment