diff options
| author | Martin Guzman <55927935+brockar@users.noreply.github.com> | 2026-01-24 19:45:52 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-24 19:45:52 -0300 |
| commit | 6b9ef5fb2219ccbb3d42adb4b691c466991efc9f (patch) | |
| tree | 74b141beda34510f7c44d5e82d2c6ed54c6bfbac /scripts/lib_update.sh | |
| parent | 035724daaf362eac452a781e20144cf893ed274f (diff) | |
| parent | d2fbf319bc3b09e4345dea390b85d328eb0318c0 (diff) | |
Merge pull request #931 from JaKooLit/development
Development to main: Fix upgrade bug
Diffstat (limited to 'scripts/lib_update.sh')
| -rw-r--r-- | scripts/lib_update.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/lib_update.sh b/scripts/lib_update.sh index 0a70dff0..be0b8a0a 100644 --- a/scripts/lib_update.sh +++ b/scripts/lib_update.sh @@ -77,6 +77,20 @@ run_repo_update() { echo " Pull status : $( [ $pull_status -eq 0 ] && echo success || echo failure )" | tee -a "$log_file" echo "----------------------------------------" | tee -a "$log_file" + # Also run the UserConfigs duplicate cleanup for existing installs, + # using the same version gating as the main copy workflow (<= v2.3.19). + if declare -f get_installed_dotfiles_version >/dev/null 2>&1 \ + && declare -f cleanup_duplicate_userconfigs >/dev/null 2>&1; then + local installed_version + installed_version=$(get_installed_dotfiles_version) + if [ -n "$installed_version" ]; then + echo "${INFO:-[INFO]} Checking for duplicate UserConfigs entries after repo update (detected v$installed_version)..." | tee -a "$log_file" + cleanup_duplicate_userconfigs "$installed_version" "$log_file" + else + echo "${NOTE:-[NOTE]} Skipping UserConfigs duplicate cleanup; installed version could not be detected." | tee -a "$log_file" + fi + fi + read -n1 -s -r -p "Press any key to return to the main menu..." echo |
