This commit is contained in:
2026-02-07 01:04:02 +08:00
parent 6739f5b86b
commit 85524a0fe1
2 changed files with 7 additions and 5 deletions

View File

@@ -238,12 +238,12 @@
}, },
"ssh.ts": { "ssh.ts": {
"script_name": "ssh.ts", "script_name": "ssh.ts",
"script_length": 6600, "script_length": 6633,
"script_sha256": "32133f8fd4d0804dfed9f0db65dc4d4f34dd851ab7b7886fd572aa2ea4795a1a", "script_sha256": "e79f8ac6902a48976693d969e00154870042698dbf5cc3457cc720beefc41b14",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ssh.ts", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/ssh.ts",
"single_script_file": true, "single_script_file": true,
"publish_time": 1768111677531, "publish_time": 1768111677531,
"update_time": 1770397234557 "update_time": 1770397438002
}, },
"tree.ts": { "tree.ts": {
"script_name": "tree.ts", "script_name": "tree.ts",

View File

@@ -4,7 +4,7 @@
import {parseArgs} from "node:util"; import {parseArgs} from "node:util";
import {log, readFileToString, term, execCommandShell} from "../libraries/deno-commons-mod.ts"; import {execCommandShell, log, readFileToString, term,} from "https://script.hatter.ink/@29/deno-commons-mod.ts";
import JSON5 from "npm:json5"; import JSON5 from "npm:json5";
class SshTsArgs { class SshTsArgs {
@@ -195,7 +195,9 @@ async function main() {
sshConfig.default_username || "root"; sshConfig.default_username || "root";
sshArgs.push(`${sshUsername}@${sshProfile.host}`); sshArgs.push(`${sshUsername}@${sshProfile.host}`);
console.log(term.auto(`[green][OK ][/green] ${sshCommand} ${sshArgs.join(" ")}`)); console.log(
term.auto(`[green][OK ][/green] ${sshCommand} ${sshArgs.join(" ")}`),
);
await execCommandShell(sshCommand, sshArgs); await execCommandShell(sshCommand, sshArgs);
} }
await main(); await main();