Skip to content

Commit

Permalink
default is default
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed May 2, 2024
1 parent 684abd8 commit e334f13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runner/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def run(logger, command, cwd=None, env=None, shell=False, check=False, node=Fals

# TODO - refactor to put the appropriate node/npm binaries in PATH so this isn't necessary
if node:
command = f'source {NVM_PATH} && nvm use default && {command}'
command = f'source {NVM_PATH} && {command}'
shell = True

if isinstance(command, str) and not shell:
Expand Down
2 changes: 1 addition & 1 deletion test/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def test_run_with_node(mock_popen):
run(mock_logger, command, cwd=cwd, env=env, node=True)

mock_popen.assert_called_once_with(
f'source {NVM_PATH} && nvm use default && {command}',
f'source {NVM_PATH} && {command}',
cwd=cwd,
env=env,
shell=True, # nosec
Expand Down

0 comments on commit e334f13

Please sign in to comment.