Skip to content
Snippets Groups Projects
Commit d0ffcc10 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

bug in previous commit, once keys are copied, don't try to copy more, because keys are copied

parent f1c033bb
No related branches found
No related tags found
No related merge requests found
......@@ -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...");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment