Skip to content

Commit

Permalink
Fix checking for nvm (#101)
Browse files Browse the repository at this point in the history
`exists` doesn't seem to be a command neither on macOS nor on Linux
  • Loading branch information
rainboxx authored and typicode committed Mar 2, 2017
1 parent 971ab6d commit 4b89c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Expand Up @@ -58,8 +58,8 @@ function getHookScript (hookName, relativePath, cmd) {

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

Expand Down

0 comments on commit 4b89c52

Please sign in to comment.