update ssh.ts
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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==
|
||||
|
||||
Reference in New Issue
Block a user