Skip to content

Commit 576181f

Browse files
committed
add exit code
1 parent a52a9b3 commit 576181f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sync.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,10 @@ var sync = {
274274

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

282283
// Wait for SSH connection to be connected

0 commit comments

Comments
 (0)