update git check

This commit is contained in:
2026-02-08 17:12:59 +08:00
parent 22c8bf0c22
commit c932572041
2 changed files with 8 additions and 13 deletions

View File

@@ -98,12 +98,12 @@
},
"git-check.ts": {
"script_name": "git-check.ts",
"script_length": 2773,
"script_sha256": "272c74107d4d92238061f78bcda49357fa2f9032939d39289fa223e58a41059f",
"script_length": 2711,
"script_sha256": "bc97f4da2ff8ef98494e06f918d14b9e0960ef57af4a732fae623121d2048cc9",
"script_full_url": "https://git.hatter.ink/hatter/ts-scripts/raw/branch/main/single-scripts/git-check.ts",
"single_script_file": true,
"publish_time": 1770541896791,
"update_time": 1770541896791
"update_time": 1770541975528
},
"helloworld-bun.ts": {
"script_name": "helloworld-bun.ts",

View File

@@ -2,18 +2,13 @@
import {
execCommand,
formatHumanTime,
log,
ProcessBar,
} from "https://script.hatter.ink/@29/deno-commons-mod.ts";
import {
getGitLocalRev,
getGitRemoteRev,
} from "https://script.hatter.ink/@0/deno-git-mod.ts";
import {
formatHumanTime,
readFileToString,
writeStringToFile,
} from "../libraries/deno-commons-mod.ts";
} from "https://script.hatter.ink/@29/deno-commons-mod.ts";
import {getGitLocalRev, getGitRemoteRev,} from "https://script.hatter.ink/@0/deno-git-mod.ts";
async function sha256OfString(input: string): Promise<string> {
const data = new TextEncoder().encode(input);
@@ -88,5 +83,5 @@ async function main() {
await main();
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T171132+08:00.MEQCIE+nwuOV0aljgeKyGzFE
// eSZrNDvMwRpta2s+C26F0PKHAiBdgS0xvwSjiVrl+82PtaSVsDnxJ8/AsAfb3D1t4fFaeA==
// @SCRIPT-SIGNATURE-V1: yk-r1.ES256.20260208T171251+08:00.MEYCIQDnT/2rcJlUvb/AWwc6
// ZLFgkkxAO1csY0EjFGau6VqIqgIhAO6nEggx2Nt2SSdiXkCWl7xAjVTiQlYdTKKBoW6VcR4O