Skip to content

Commit

Permalink
add exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
serkanyersen committed Aug 9, 2013
1 parent a52a9b3 commit 576181f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,10 @@ var sync = {

// Keep a connection open to make scp commands faster
this.ssh = this.exec('ssh -Mv '+this.host, function(){
self.write(self.clc.red('SSH Connection ended.\n'));
self.write(self.clc.red('\nSSH connection failed.\n'));
// stop showing dots
self.dotsStop();
process.exit(1);
});

// Wait for SSH connection to be connected
Expand Down

0 comments on commit 576181f

Please sign in to comment.