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