From dceac24691cf18c9832f25cc6959c1922a240a41 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 7 Feb 2026 01:51:20 +0800 Subject: [PATCH] update ssh.ts --- script-meta-v2.json | 6 +++--- single-scripts/ssh.ts | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/script-meta-v2.json b/script-meta-v2.json index 9d3d10a..c4b42dc 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -247,12 +247,12 @@ }, "ssh.ts": { "script_name": "ssh.ts", - "script_length": 6648, - "script_sha256": "c547c5319abaec8edbc3bcb875eaf623ea144a38da023319af208ea329d97622", + "script_length": 6660, + "script_sha256": "c3ed11c0cbb3c407bf66302b209122138308cac8a57b2e41704ce1b1ca97ddb5", "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": 1770397497575 + "update_time": 1770400275422 }, "tree.ts": { "script_name": "tree.ts", diff --git a/single-scripts/ssh.ts b/single-scripts/ssh.ts index 03f84a3..8e43560 100755 --- a/single-scripts/ssh.ts +++ b/single-scripts/ssh.ts @@ -85,10 +85,9 @@ function printSshConfig(sshConfig: SshConfig) { } async function loadSshConfig(): SshConfig { + const configFile = "~/.config/ssh-rs-config.json"; try { - const sshConfigText = await readFileToString( - "~/.config/ssh-rs-config.json", - ); + const sshConfigText = await readFileToString(configFile); return JSON5.parse(sshConfigText); } catch (e) { throw `Load config file: ${configFile} failed: ${e}`; @@ -202,5 +201,5 @@ async function main() { } await main(); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260207T010448+08:00.MEUCIQDS26BFCGE2YCDYK64p -// p54VTppFiq00bCcKvjL75VTgAwIgI6byeiHc41LGVHDscJ7cnmH+lP2qJxpXFqo7UmpUFDA= +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260207T015058+08:00.MEQCIE2aMMk7tBzsdVFKzz1n +// JJ3kMRKyWFqLAITwrFJMX8nVAiAQ5VK424bNfJ6k+BH5gBWkSHfWYF3e6TkuZM/esu3Fiw==