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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
4abd084f7f
commit
7ff91d9d5c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user