update ssh.ts

This commit is contained in:
2026-02-12 00:00:43 +08:00
parent 09ed9c5b21
commit 0b563a6753
2 changed files with 6 additions and 10 deletions

View File

@@ -250,12 +250,12 @@
},
"ssh.ts": {
"script_name": "ssh.ts",
"script_length": 7011,
"script_sha256": "474b2352fcd97ff4327383125b3a643860ee5f1d6661710ad43827b1b8107ff0",
"script_length": 6949,
"script_sha256": "f1fa3ae8e9a8027dcb3d33de50e82861dfa3cfdb23e2f227a935f13b88a9775e",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ssh.ts",
"single_script_file": true,
"publish_time": 1768111677531,
"update_time": 1770819890077
"update_time": 1770825639027
},
"term-color.ts": {
"script_name": "term-color.ts",

View File

@@ -201,11 +201,7 @@ async function main() {
sshArgs.push(`${sshUsername}@${sshProfile.host}`);
const joinedSshArgs = sshArgs.map((arg) => {
if (arg.includes(" ")) {
return `"${arg}"`;
} else {
return arg;
}
return arg.includes(" ") ? `"${arg}"` : arg;
}).join(" ");
console.log(
term.auto(
@@ -216,5 +212,5 @@ async function main() {
}
await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T222426+08:00.MEQCIBUaOjb8a7K/MhtnyCNB
// nFaiDnFC1XR30+HUCAUsonBmAiAiinGYmYEA20TuGWogH3pSqIH3X1YDH9T7pbV3l1kuHA==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260211T235813+08:00.MEUCIQDv0QK2W1kovPPwgTO3
// OfHXcRL8oq4f2pWeL0YbBcVL+AIgLWJWZzCKganA6pfwtxGD3hY/1bSBoQWQ8xm+tep0dA0=