mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Refactor run_command function in build.py to handle exceptions
This commit is contained in:
parent
43142134e8
commit
6674c7ca38
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def run_command(command: List[str]) -> int:
|
|||
"""Utils to run a subprocess command. This is usefull to run npm commands to build vite project"""
|
||||
print(f"Running command: {command}", flush=True)
|
||||
try:
|
||||
process = Popen(command, stdout=PIPE, stderr=PIPE, cwd=current_directory, text=True)
|
||||
process = Popen(command, stdout=PIPE, stderr=PIPE, cwd=current_directory.as_posix(), text=True)
|
||||
while process.poll() is None:
|
||||
if process.stdout is not None:
|
||||
for line in process.stdout:
|
||||
|
|
|
|||
Loading…
Reference in a new issue