omarchy
omarchy copied to clipboard
omarchy-theme-install should lowercase directory name to match omarchy-theme-set
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:]')
Reopening with the bug template.