1 Commits
Author SHA1 Message Date
matmoul 519f1c3bae fix: exit with non-zero status on SSH command failure 2026-06-05 21:25:38 +02:00
+4
View File
@@ -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(" "));
try {
await $`${cmd}`; await $`${cmd}`;
} catch (error) {
process.exit(1);
}