diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-01-15 01:56:42 -0500 |
|---|---|---|
| committer | Don Williams <don.e.williams@gmail.com> | 2026-01-15 01:56:42 -0500 |
| commit | 0886304d0fe31f88343391f5405465f90d2ac8fe (patch) | |
| tree | d84b46d3d4d248865d26d03df2c2506c4f8dd125 /copy.sh | |
| parent | 1451c8f90cab6a28216872f017083a77dad54be1 (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-x | copy.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 } |
