fix: exit with non-zero status on SSH command failure
This commit is contained in:
1 parent
d8f8101d9e
commit
519f1c3bae
1 file changed
+4
@@ -186,4 +186,8 @@ const hostIndex = Number(await tuiMenu());
|
||||
const cmd = buildSSHCommnand(config.hosts[hostIndex]);
|
||||
console.log(cmd.join(" "));
|
||||
|
||||
try {
|
||||
await $`${cmd}`;
|
||||
} catch (error) {
|
||||
process.exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user