Skip to content

Commit

Permalink
Merge pull request #252 from wordpress-mobile/fix/remove-npm-login-shell
Browse files Browse the repository at this point in the history
Remove login shell flag so that environment variables are used.
  • Loading branch information
twstokes authored Apr 29, 2024
2 parents e8d5919 + 7b9025c commit 344105d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gbm-cli/pkg/shell/npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func switchNodeCmd(cmds ...string) *exec.Cmd {
nvmCheck := exec.Command("bash", "-l", "-c", "nvm")
if err := nvmCheck.Run(); err != nil {
// Load nvm before running npm
return exec.Command("bash", "-l", "-c", ". $NVM_DIR/nvm.sh && "+nvmCmd)
return exec.Command("bash", "-c", ". $NVM_DIR/nvm.sh && "+nvmCmd)
} else {
return exec.Command("bash", "-l", "-c", nvmCmd)
return exec.Command("bash", "-c", nvmCmd)
}
}

Expand Down

0 comments on commit 344105d

Please sign in to comment.