cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

3bdcb7ef1ff3aa5649b9ca5af0795c11704072a1

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2026-02-04T01:05:37Z

move from lower() to casefold() for safer checking
 build.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.py b/build.py
index 7c2e23d..d58d683 100644
--- a/build.py
+++ b/build.py
@@ -348,7 +348,7 @@ def main():
     css_src = theme_dir / "styles.css"
     css_min = theme_dir / "styles.min.css"
 
-    env = os.environ.get("ENV", "").lower()
+    env = os.environ.get("ENV", "").casefold()
     if env == "prod":
         print("Environment: Production")
         method = prompt("Publishing on remote or LAN? [r|l] ").lower()