From d3053029817298d5b47fee325f6bba72b4edbae5 Mon Sep 17 00:00:00 2001 From: chendelin1982 <27513732@qq.com> Date: Mon, 14 Feb 2022 15:12:00 +0800 Subject: [PATCH] action --- apps/create.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/create.py b/apps/create.py index 4da5ec2c..c8a77308 100644 --- a/apps/create.py +++ b/apps/create.py @@ -22,12 +22,8 @@ mylists=ReadLists("add") # 批量处理,创建项目文件夹,issue for mylist in mylists: print("处理 "+mylist+" ...\n") - path=os.getcwd()+"/"+mylist+"/README.md" - print(path) - print(os.path.exists(path)) - if not os.path.exists(path): - os.system("git clone --depth https://github.com/Websoft9/ansible-template "+ mylist) - os.system("cd "+ mylist +" && rm -rf .git .github docs") + os.system("git clone --depth=1 https://github.com/Websoft9/ansible-template "+ mylist) + os.system("cd "+ mylist +" && rm -rf .git .github docs") os.system("echo '' > lists") print("\n执行完成,并清空列表") \ No newline at end of file