From 7ff91d9d5c02091e5ad162022f110e938bb75668 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 8 Jul 2026 18:16:16 -0700 Subject: [PATCH] Only carry over user-added theme backgrounds during the quattro upgrade The trailing slash from the themes/*/ glob put a double slash in the path comparison, so stock backgrounds never matched git ls-files output and were all moved into ~/.config/omarchy/backgrounds. Co-Authored-By: Claude Fable 5 --- bin/omarchy-upgrade-to-quattro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-upgrade-to-quattro b/bin/omarchy-upgrade-to-quattro index bc97da35..97e827bd 100755 --- a/bin/omarchy-upgrade-to-quattro +++ b/bin/omarchy-upgrade-to-quattro @@ -1811,9 +1811,10 @@ if [[ -d $legacy_omarchy_backup/themes && -d $legacy_omarchy_backup/.git ]]; the cd "$legacy_omarchy_backup" mapfile -t tracked_backgrounds < <(git ls-files --cached 'themes/*/backgrounds/*' 2>/dev/null) for theme_dir in themes/*/; do + theme_dir=${theme_dir%/} [[ -d $theme_dir/backgrounds ]] || continue theme_name=$(basename "$theme_dir") - for bg_file in "$theme_dir"/backgrounds/*; do + for bg_file in "$theme_dir/backgrounds"/*; do [[ -f $bg_file ]] || continue is_tracked=0 for tracked in "${tracked_backgrounds[@]}"; do