Fix commit link kinda, breaks docker builds tho

This commit is contained in:
BuyMyMojo 2025-04-04 23:45:08 +11:00
parent 5153e2deef
commit eb3fb830b8
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B

View file

@ -4,8 +4,8 @@ const buttonFormat = "gif";
import { Icon } from "astro-icon/components"; import { Icon } from "astro-icon/components";
import { execSync } from "node:child_process"; import { execSync } from "node:child_process";
const commitURL = import.meta.env.PUBLIC_COMMIT === "" ? "" : `${import.meta.env.PUBLIC_REPOURL}commit/${execSync(`git log -1 --pretty="format:%H"`)}`; const commitURL = `https://git.aria.coffee/BuyMyAria/aria.coffee/commit/${execSync(`git log -1 --pretty="format:%H"`)}`;
const COMMIT = import.meta.env.PUBLIC_COMMIT === "" ? "Docker Build!" : `<a href=${commitURL} target="_blank">${execSync(`git log -1 --pretty="format:%h"`)}</a>`; const COMMIT = `<a href=${commitURL} target="_blank">${execSync(`git log -1 --pretty="format:%h"`)}</a>`;
--- ---
<hr class="h-1" style="" /> <hr class="h-1" style="" />