fix: exit with non-zero status on SSH command failure
This commit is contained in:
@@ -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