Skip to content

Commit

Permalink
Remove login shell flag so that environment variables are used.
Browse files Browse the repository at this point in the history
  • Loading branch information
twstokes committed Apr 25, 2024
1 parent e8d5919 commit 7b9025c
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 7b9025c

Please sign in to comment.