From 85524a0fe1a354216987ef0158a04f182a6cdc23 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 7 Feb 2026 01:04:02 +0800 Subject: [PATCH] ssh.ts --- script-meta-v2.json | 6 +++--- single-scripts/ssh.ts | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/script-meta-v2.json b/script-meta-v2.json index 027dce4..7b95c25 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -238,12 +238,12 @@ }, "ssh.ts": { "script_name": "ssh.ts", - "script_length": 6600, - "script_sha256": "32133f8fd4d0804dfed9f0db65dc4d4f34dd851ab7b7886fd572aa2ea4795a1a", + "script_length": 6633, + "script_sha256": "e79f8ac6902a48976693d969e00154870042698dbf5cc3457cc720beefc41b14", "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": 1770397234557 + "update_time": 1770397438002 }, "tree.ts": { "script_name": "tree.ts", diff --git a/single-scripts/ssh.ts b/single-scripts/ssh.ts index f805fe4..db48d45 100755 --- a/single-scripts/ssh.ts +++ b/single-scripts/ssh.ts @@ -4,7 +4,7 @@ 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"; class SshTsArgs { @@ -195,7 +195,9 @@ async function main() { sshConfig.default_username || "root"; 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 main();