From d9ca92402ae3a7404512a6e5843989816b824fdf Mon Sep 17 00:00:00 2001 From: pengtao Date: Tue, 15 Jun 2021 17:13:03 +0800 Subject: [PATCH] 1 --- deploy/deploy_git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy_git.py b/deploy/deploy_git.py index a2c8cfe..685edb7 100644 --- a/deploy/deploy_git.py +++ b/deploy/deploy_git.py @@ -48,7 +48,7 @@ class DeployGit: pre_script = self.infos[0][5] self.tag_name = "{name}{now}".format(name=self.name, now=self.now) pdb.set_trace() - build_cmd = "cd /data/publish/git && git clone {url} . && cd {name} && sh {pre_script} && cd .. && tar tar zcvf {tag_name}.tar.gz {name} ".format( + build_cmd = "cd /data/publish/git && git clone {url} && cd {name} && sh {pre_script} && cd .. && tar tar zcvf {tag_name}.tar.gz {name} ".format( name=self.name, url=url, tag_name=self.tag_name, pre_script=pre_script) os.system(build_cmd) self.tag_file = "/data/publish/git/"+self.tag_name+'tag.gz'