diff --git a/script-meta-v2.json b/script-meta-v2.json index d575093..5c6262e 100644 --- a/script-meta-v2.json +++ b/script-meta-v2.json @@ -45,11 +45,11 @@ "commit.ts": { "script_name": "commit.ts", "script_length": 10033, - "script_sha256": "3e6b2eebcda60f9c74bc0d7bff8f497a84d85cefb803f72378639ed30a699a58", + "script_sha256": "8e2b7eec88cc824f676613548b8624a6a5d47f2a84560f52923b744b3fd9591e", "script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/commit.ts", "single_script_file": true, "publish_time": 1769318306585, - "update_time": 1769318429474 + "update_time": 1769318644318 }, "decode-uri-component.ts": { "script_name": "decode-uri-component.ts", diff --git a/single-scripts/commit.ts b/single-scripts/commit.ts index 2ccd0eb..bf92edf 100755 --- a/single-scripts/commit.ts +++ b/single-scripts/commit.ts @@ -247,13 +247,13 @@ class ProcessBar { if (costMs > 1000) { time = parseInt(costMs / 1000) + "s"; } - process.stdout.write(`\r${this.message} ${time} ${dots}\x1b[K`); + process.stderr.write(`\r${this.message} ${time} ${dots}\x1b[K`); }, 200); } stop(clearLine?: boolean): void { if (this.interval) { clearInterval(this.interval); - process.stdout.write(clearLine ? "\r" : "\n"); + process.stderr.write(clearLine ? "\r" : "\n"); } } } @@ -321,5 +321,5 @@ main().catch((err) => { process.exit(0); }).then(() => process.exit(0)); -// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T132004+08:00.MEQCIE79f9fvVdB/ZPz7TaLz -// G5MQJfEKNXwMrnw/7otxla/cAiAw/MC/WJDEM1cwCiSAIWBQofsvSoRIfKYVpYx7koHmXA== +// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T132351+08:00.MEQCIGM/e3lHXhvDoj2w1HUz +// b3VNQZ5UcV3rYo2eVhGbeclhAiBYWQ70AqGUUS80RKR4Umqr+D4NSSKHIhujwGngWBbKqw==