From 68f698aea868a36fabc72bc22f1f2ca21e987ad2 Mon Sep 17 00:00:00 2001 From: Aria Date: Mon, 10 Mar 2025 22:34:00 +1100 Subject: [PATCH] Fix broken docker build from last modified attempt 3 --- remark-modified-time.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remark-modified-time.mjs b/remark-modified-time.mjs index 7291612..8b93e00 100644 --- a/remark-modified-time.mjs +++ b/remark-modified-time.mjs @@ -3,7 +3,7 @@ import { execSync } from "node:child_process"; export function remarkModifiedTime() { return (tree, file) => { const filepath = file.history[0]; - const result = import.meta.env.PUBLIC_COMMIT === "" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); + const result = typeof import.meta.env.PUBLIC_COMMIT === "undefined" ? "Unavailable" : execSync(`git log -1 --pretty="format:%cI" "${filepath}"`); file.data.astro.frontmatter.lastModified = result.toString(); }; } \ No newline at end of file