From 27f365243d3ce93ac0630811b2fb3916b43fe207 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Thu, 14 Jul 2022 14:35:10 +0800 Subject: [PATCH] Update create.py --- apps/create.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/create.py b/apps/create.py index f5b21dd1..a2c3614b 100644 --- a/apps/create.py +++ b/apps/create.py @@ -22,8 +22,7 @@ mylists=ReadLists("add") # 批量处理,创建项目文件夹,issue for mylist in mylists: print("处理 "+mylist+" ...\n") - os.system("git clone --depth=1 https://github.com/Websoft9/ansible-template.git "+ mylist + "rm -rf ansible-template") - os.system("cd "+ mylist +" && rm -rf .git .github docs") + os.system("cd apps/roles && cp -R Template " + mylist) os.system("echo '' > add") -print("\n执行完成,并清空列表") \ No newline at end of file +print("\n执行完成,并清空列表")