diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-22 19:23:58 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-22 19:26:20 -0500 |
| commit | 2088bdc2b5ef8c2823e6f2e4997871818417672e (patch) | |
| tree | 209e192f4c1c4b088f80b3a3558e4bff39d649ed /scripts | |
| parent | c6a85140d2578a7d3ea009cb8074049c98c8da4e (diff) | |
fix: UserConfigs dedupe handling for express/update
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lib_copy.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/lib_copy.sh b/scripts/lib_copy.sh index ace6f4d7..331c6906 100644 --- a/scripts/lib_copy.sh +++ b/scripts/lib_copy.sh @@ -427,9 +427,14 @@ restore_user_configs() { fi # Always run de-dupe based on the installed dotfiles version so that - # express mode and standard mode behave consistently. - local detected_version - detected_version=$(get_installed_dotfiles_version) + # express mode and standard mode behave consistently. Prefer the + # pre-upgrade version (old_version) if provided so we still clean up + # legacy duplicates when upgrading to a newer release that no longer + # needs the fix. + local detected_version="$old_version" + if [ -z "$detected_version" ]; then + detected_version=$(get_installed_dotfiles_version) + fi if [ -n "$detected_version" ]; then cleanup_duplicate_userconfigs "$detected_version" "$log" fi |
