aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib_update.sh
diff options
context:
space:
mode:
authorMartin Guzman <55927935+brockar@users.noreply.github.com>2026-01-24 19:45:52 -0300
committerGitHub <noreply@github.com>2026-01-24 19:45:52 -0300
commit6b9ef5fb2219ccbb3d42adb4b691c466991efc9f (patch)
tree74b141beda34510f7c44d5e82d2c6ed54c6bfbac /scripts/lib_update.sh
parent035724daaf362eac452a781e20144cf893ed274f (diff)
parentd2fbf319bc3b09e4345dea390b85d328eb0318c0 (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.sh14
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage