fix: exit with non-zero status on SSH command failure

This commit is contained in:
2026-06-05 21:25:38 +02:00
parent d8f8101d9e
commit 519f1c3bae
+5 -1
View File
@@ -186,4 +186,8 @@ const hostIndex = Number(await tuiMenu());
const cmd = buildSSHCommnand(config.hosts[hostIndex]);
console.log(cmd.join(" "));
await $`${cmd}`;
try {
await $`${cmd}`;
} catch (error) {
process.exit(1);
}