Skip to content

Commit

Permalink
Don't load nvm if it's already loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed May 28, 2017
1 parent 4bf6014 commit 9321e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -63,7 +63,7 @@ function getHookScript (hookName, relativePath, cmd) {

'load_nvm () {',
' export $1=$2',
' [ -s "$2/nvm.sh" ] && . $2/nvm.sh',
' command_exists nvm || [ -s "$2/nvm.sh" ] && . $2/nvm.sh',
' command_exists nvm && [ -f .nvmrc ] && nvm use',
'}',
'',
Expand Down

0 comments on commit 9321e7a

Please sign in to comment.