omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-theme-install should lowercase directory name to match omarchy-theme-set

Open limehawk opened this issue 7 months ago • 1 comments

omarchy-theme-set normalizes theme names to lowercase:

THEME_NAME=$(echo "$1" | sed -E 's/<[^>]+>//g' | tr '[:upper:]' '[:lower:]' | tr ' ' '-')

omarchy-theme-install does not:

THEME_NAME=$(basename "$REPO_URL" .git | sed -E 's/^omarchy-//; s/-theme$//')

Since theme-install calls theme-set at the end, any repo with uppercase letters in the name will clone into a mixed-case directory, then theme-set lowercases when looking it up and fails with "does not exist."

The lowercasing was added to theme-set in 7514ae7 but theme-install was never updated to match.

Suggested fix — bin/omarchy-theme-install, line 18:

THEME_NAME=$(basename "$REPO_URL" .git | sed -E 's/^omarchy-//; s/-theme$//' | tr '[:upper:]' '[:lower:]')

limehawk avatar Apr 07 '26 16:04 limehawk

Reopening with the bug template.

limehawk avatar Apr 07 '26 16:04 limehawk