aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-01-15 01:56:42 -0500
committerDon Williams <don.e.williams@gmail.com>2026-01-15 01:56:42 -0500
commit0886304d0fe31f88343391f5405465f90d2ac8fe (patch)
treed84b46d3d4d248865d26d03df2c2506c4f8dd125 /copy.sh
parent1451c8f90cab6a28216872f017083a77dad54be1 (diff)
Fixing menu and version detection code for express upgrade
On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: copy.sh modified: scripts/copy_menu.sh modified: scripts/tui_menu.py
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/copy.sh b/copy.sh
index def8b209..31c66a0b 100755
--- a/copy.sh
+++ b/copy.sh
@@ -112,12 +112,12 @@ version_gte() {
get_installed_dotfiles_version() {
local hypr_dir="$HOME/.config/hypr"
- local version_file
if [ -d "$hypr_dir" ]; then
- version_file=$(find "$hypr_dir" -maxdepth 1 -name "v*.*.*" | head -n 1)
- if [ -n "$version_file" ]; then
- basename "$version_file" | sed 's/^v//'
- fi
+ # Pick the highest semantic version among files named vX.Y.Z
+ find "$hypr_dir" -maxdepth 1 -type f -name 'v*.*.*' -printf '%f\n' 2>/dev/null \
+ | sed 's/^v//' \
+ | sort -V \
+ | tail -n1
fi
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage