Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
quotes / no quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvaindethier committed Mar 6, 2016
1 parent 639e46c commit 19ff9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/nvm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function shell (command = '') {
// the hole command has to be quoted in Node v5
// doing this in versions below will fail
/* istanbul ignore next: difficult to test */
// if (/^v5/.test(process.version)) cmd = `'${cmd}'`
if (/^v5/.test(process.version)) cmd = "'" + cmd + "'"

// invoke shell command (-c)
return spawn(process.env.SHELL, ['-c', cmd], options)
Expand Down

0 comments on commit 19ff9d1

Please sign in to comment.