Browse Source

fix: tar command not blocking wait

master
Dnomd343 2 years ago
parent
commit
f1fc614b3e
  1. 2
      src/release/utils/release.py

2
src/release/utils/release.py

@ -104,7 +104,7 @@ def staticBuild(workDir: str) -> None:
print('Gitbook Build -> %s' % workDir) print('Gitbook Build -> %s' % workDir)
subprocess.Popen(buildCommand, shell = True).wait() # blocking wait subprocess.Popen(buildCommand, shell = True).wait() # blocking wait
os.chdir(os.path.join(workDir, './_book')) 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: def staticRelease(metadata: dict, content: dict) -> None:

Loading…
Cancel
Save