Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
fix(migrate): rename the rangeVersion arg to currentVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément PREVOT committed Oct 17, 2016
1 parent 69cfa40 commit da47042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

var spawn = require('child_process').spawn

function nvmCommand (maxSatisfyVersion, rangeVersion) {
function nvmCommand (maxSatisfyVersion, currentVersion) {
var cmd = ''
cmd += 'nvm install '
cmd += maxSatisfyVersion
cmd += ' --reinstall-packages-from='
cmd += rangeVersion
cmd += currentVersion
return cmd
}

function createSwitcher (maxSatisfyVersion, rangeVersion) {
function createSwitcher (maxSatisfyVersion, currentVersion) {
var binaries = {
nvm: {
cmd: process.env.SHELL,
args: ['-c', 'source $NVM_DIR/nvm.sh; ' + nvmCommand(maxSatisfyVersion, rangeVersion)]
args: ['-c', 'source $NVM_DIR/nvm.sh; ' + nvmCommand(maxSatisfyVersion, currentVersion)]
},

n: {
Expand Down

0 comments on commit da47042

Please sign in to comment.