This commit is contained in:
2026-01-25 13:20:10 +08:00
parent 9bfa0ad97f
commit 8cdd9d7748

View File

@@ -1,9 +1,9 @@
#!/usr/bin/env runts -- --runtime-bun #!/usr/bin/env runts -- --runtime-bun
import { spawn } from "node:child_process"; import {spawn} from "node:child_process";
import { existsSync } from "node:fs"; import {existsSync} from "node:fs";
import { createInterface } from "node:readline/promises"; import {createInterface} from "node:readline/promises";
import { stdin, stdout } from "node:process"; import {stdin, stdout} from "node:process";
class ProcessOutput { class ProcessOutput {
code: number; code: number;
@@ -308,9 +308,9 @@ async function main() {
gitCommitArgs.push("-m"); gitCommitArgs.push("-m");
gitCommitArgs.push(message); gitCommitArgs.push(message);
console.log("[COMMAND] Git command: ", "git", gitCommitArgs); console.log(">>>>>", "Git command: ", ["git", gitCommitArgs]);
await execCommandShell("git", gitCommitArgs); await execCommandShell("git", gitCommitArgs);
console.log("[COMMAND] Git push"); console.log(">>>>>", ["git", "push"]);
await new ProcessBar("Git pushing").call(async (): Promise<void> => { await new ProcessBar("Git pushing").call(async (): Promise<void> => {
await execCommandShell("git", ["push"]); await execCommandShell("git", ["push"]);
}); });
@@ -321,5 +321,5 @@ main().catch((err) => {
process.exit(0); process.exit(0);
}).then(() => process.exit(0)); }).then(() => process.exit(0));
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T131735+08:00.MEUCIHxEft36c8GHONGw4yAL // @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260125T132004+08:00.MEQCIE79f9fvVdB/ZPz7TaLz
// dZV+AcXDaG8lwOL1rCeDJv5FAiEAhCnraPe+ajy38ifHzXm3rB321EVeNVTOBEQNNxXQSms= // G5MQJfEKNXwMrnw/7otxla/cAiAw/MC/WJDEM1cwCiSAIWBQofsvSoRIfKYVpYx7koHmXA==