update ssh.ts
This commit is contained in:
@@ -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