From f1fc614b3ee4d50884064bcdc287d7cacea77f2d Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Thu, 16 Mar 2023 20:01:29 +0800 Subject: [PATCH] fix: tar command not blocking wait --- src/release/utils/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/release/utils/release.py b/src/release/utils/release.py index c1b66a6..f2fa98d 100644 --- a/src/release/utils/release.py +++ b/src/release/utils/release.py @@ -104,7 +104,7 @@ def staticBuild(workDir: str) -> None: print('Gitbook Build -> %s' % workDir) subprocess.Popen(buildCommand, shell = True).wait() # blocking wait os.chdir(os.path.join(workDir, './_book')) - os.popen('tar cJf %s *' % releaseInfo['static']) + os.system('tar cJf %s *' % releaseInfo['static']) def staticRelease(metadata: dict, content: dict) -> None: