Skip to content

Commit

Permalink
Fix inv test dev command on Windows (#395)
Browse files Browse the repository at this point in the history
Fixes: #394
  • Loading branch information
fohrloop authored Sep 20, 2024
1 parent b8ebaf1 commit c9ae918
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@
def get_run_with_print(c):
def run_with_print(cmd: str, ignore_errors: bool = False) -> Result:
print("Running:", Fore.YELLOW, cmd, Fore.RESET)

unix_like = is_unix_like_foss(CURRENT_PLATFORM)
res: Result = c.run(
cmd,
pty=is_unix_like_foss(CURRENT_PLATFORM),
pty=unix_like,
warn=ignore_errors,
shell=get_shell(),
shell=get_shell() if unix_like else None,
)
return res

Expand Down

0 comments on commit c9ae918

Please sign in to comment.