fix version sorting when determining debian pkg to download

This commit is contained in:
2026-08-22 06:03:06 +02:00
parent f0610091bb
commit 44cc111b3d
+1 -1
View File
@@ -137,7 +137,7 @@ function install_proxmox_backup_client() {
$update && local action='Updating' || local action='Installing' $update && local action='Updating' || local action='Installing'
echo "$action proxmox-backup-client-static binary ..." echo "$action proxmox-backup-client-static binary ..."
local pkgfile=$(curl -fsSL "$PBC_DOWNLOAD_URL/" | grep proxmox-backup-client-static_ | tail -n 1 | sed 's#.*href="##g;s#".*##g;') local pkgfile=$(curl -fsSL "$PBC_DOWNLOAD_URL/" | grep proxmox-backup-client-static_ | sed 's#.*href="##g;s#".*##g;' | sort --version-sort | tail -n 1)
[ -z "$pkgfile" ] && echo "Unable to determine current package file!" >&2 && return 30 [ -z "$pkgfile" ] && echo "Unable to determine current package file!" >&2 && return 30
TMPDIR=$(mktemp -d) TMPDIR=$(mktemp -d)