Skip to content

Commit

Permalink
fix: shell subprocess command
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Feb 20, 2022
1 parent 371289e commit 0b7399c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nvshim/core/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ def get_files(path: str) -> [str]:
def run_nvm_cmd(
nvm_sh_path: str, nvm_args: str, **kwargs: dict
) -> process.subprocess.CompletedProcess:
return process.run(
f". {nvm_sh_path} && nvm {nvm_args}", shell="bash", encoding="UTF-8", **kwargs
)
shell_cmd = f". {nvm_sh_path} && nvm {nvm_args}"
return process.run(shell_cmd, shell=True, encoding="UTF-8", **kwargs)


@functools.lru_cache(maxsize=None)
Expand Down

0 comments on commit 0b7399c

Please sign in to comment.