diff --git a/scripts/deploy_dev.js b/scripts/deploy_dev.js index d858e1429f0baf62b01b83df81d5588bddeed587..31d40c65549395228be94f08c2c9876bc609a4be 100755 --- a/scripts/deploy_dev.js +++ b/scripts/deploy_dev.js @@ -59,7 +59,7 @@ DevDeployer.prototype.setup = function(cb) { // now copy up addtional keypairs var i = 0; function copyNext() { - if (i == self.keypairs.length) cb(null); + if (i == self.keypairs.length) return cb(null); ssh.addSSHPubKey(self.deets.ipAddress, self.keypairs[i++], function(err) { if (err) return cb(err); self.emit('progress', "key added...");