From bd6992c58c2345499cb9671f9d83a42411b200f3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 1 Jan 2026 12:09:17 -0700 Subject: [PATCH] Variables are lowercase --- bin/omarchy-theme-set-templates | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/omarchy-theme-set-templates b/bin/omarchy-theme-set-templates index 21d8c3db..4e34dd96 100755 --- a/bin/omarchy-theme-set-templates +++ b/bin/omarchy-theme-set-templates @@ -8,8 +8,8 @@ COLORS_FILE="$CURRENT_THEME_DIR/colors.toml" if [[ -f $COLORS_FILE ]]; then # Parse TOML using yq (treating it as YAML since the flat key=value structure is compatible) # We convert 'key = value' to 'key: value' to make it valid YAML, then use yq/jq to generate the replacement commands. - SED_SCRIPT=$(mktemp) - sed 's/=/:/' "$COLORS_FILE" | yq -r 'to_entries[] | "s|{{ \(.key) }}|\(.value)|g"' > "$SED_SCRIPT" + sed_script=$(mktemp) + sed 's/=/:/' "$COLORS_FILE" | yq -r 'to_entries[] | "s|{{ \(.key) }}|\(.value)|g"' > "$sed_script" shopt -s nullglob for tpl in "$TEMPLATES_DIR"/*.tpl; do @@ -18,9 +18,9 @@ if [[ -f $COLORS_FILE ]]; then # Don't overwrite configs already exists in the output directory (copied from theme specific folder) if [[ ! -f $output_path ]]; then - sed -f "$SED_SCRIPT" "$tpl" > "$output_path" + sed -f "$sed_script" "$tpl" > "$output_path" fi done - rm "$SED_SCRIPT" + rm "$sed_script" fi