This commit is contained in:
2026-01-25 17:05:16 +08:00
parent a12a462fab
commit c0e6d3e7f1
3 changed files with 11 additions and 11 deletions

View File

@@ -532,7 +532,7 @@ export class ProcessBar {
stop(clearLine?: boolean): void { stop(clearLine?: boolean): void {
if (this.interval) { if (this.interval) {
clearInterval(this.interval); clearInterval(this.interval);
process.stderr.write(clearLine ? "\r" : "\n"); process.stderr.write(clearLine ? "\r\x1b[K" : "\n");
} }
} }
} }

View File

@@ -44,12 +44,12 @@
}, },
"commit.ts": { "commit.ts": {
"script_name": "commit.ts", "script_name": "commit.ts",
"script_length": 10258, "script_length": 10272,
"script_sha256": "ab153bd9bfcb410114bc39addc69809350772d65083440087ba9f52241385f8a", "script_sha256": "74d59880ab28ea69d2c30a71802aa8246870e6a040ec0f1e26ba2ca1fa6e9acb",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/commit.ts", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/commit.ts",
"single_script_file": true, "single_script_file": true,
"publish_time": 1769318306585, "publish_time": 1769318306585,
"update_time": 1769331759932 "update_time": 1769331909884
}, },
"decode-uri-component.ts": { "decode-uri-component.ts": {
"script_name": "decode-uri-component.ts", "script_name": "decode-uri-component.ts",

View File

@@ -252,7 +252,7 @@ class ProcessBar {
stop(clearLine?: boolean): void { stop(clearLine?: boolean): void {
if (this.interval) { if (this.interval) {
clearInterval(this.interval); clearInterval(this.interval);
process.stderr.write(clearLine ? "\r" : "\n"); process.stderr.write(clearLine ? "\r\x1b[K" : "\n");
} }
} }
} }
@@ -328,5 +328,5 @@ main().catch((err) => {
process.exit(0); process.exit(0);
}).then(() => process.exit(0)); }).then(() => process.exit(0));
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T170220+08:00.MEUCIBbcPLl4NzXzhcDwPt7F // @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T170500+08:00.MEYCIQCQaZ4intwkah4yIvBY
// i49+HyN/RBgiMXrhui/WYyhnAiEA3oSQc4/lRuy+kkCsH0PGaQr91ATjt/gZhl8PeLY0PbM= // ZDtlPggRVyMKGYjB0pKf0mKLSwIhANSfiFQpRZQ4ANeLAbBUJ4YQUgDISqLpX2v7LnOnK1ki