aboutsummaryrefslogtreecommitdiffstats
path: root/copy.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 /copy.sh
parent035724daaf362eac452a781e20144cf893ed274f (diff)
parentd2fbf319bc3b09e4345dea390b85d328eb0318c0 (diff)
Merge pull request #931 from JaKooLit/development
Development to main: Fix upgrade bug
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/copy.sh b/copy.sh
index b061f4ac..90dc1b83 100755
--- a/copy.sh
+++ b/copy.sh
@@ -167,6 +167,7 @@ while [[ $# -gt 0 ]]; do
esac
shift
done
+INSTALLED_VERSION=$(get_installed_dotfiles_version)
EXPRESS_SUPPORTED=0
if express_supported; then
EXPRESS_SUPPORTED=1
@@ -409,7 +410,12 @@ if command -v ags >/dev/null 2>&1; then
fi
fi
-printf "\n%.0s" {1..1}
+printf "\\n%.0s" {1..1}
+
+# Capture installed dotfiles version at the start of the workflow so we
+# can apply cleanup rules based on the pre-upgrade state, even if a newer
+# version marker is copied in later.
+INSTALLED_VERSION_AT_START="$(get_installed_dotfiles_version || true)"
# quickshell (ags alternative)
# Check if quickshell is installed
@@ -477,10 +483,10 @@ fi
printf "\n%.0s" {1..1}
restore_hypr_assets "$LOG" "$EXPRESS_MODE"
-printf "\n%.0s" {1..1}
+printf "\\n%.0s" {1..1}
-restore_user_configs "$LOG" "$EXPRESS_MODE"
-printf "\n%.0s" {1..1}
+restore_user_configs "$LOG" "$EXPRESS_MODE" "$INSTALLED_VERSION_AT_START"
+printf "\\n%.0s" {1..1}
restore_user_scripts "$LOG" "$EXPRESS_MODE"
printf "\n%.0s" {1..1}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage