From 44cc111b3d2ae9e5ece724aae4b079a4b3a9732494362b41d79b230043eaff99 Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Sat, 22 Aug 2026 06:03:06 +0200 Subject: [PATCH] fix version sorting when determining debian pkg to download --- pbc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbc b/pbc index 92c04e2..bd6f899 100755 --- a/pbc +++ b/pbc @@ -137,7 +137,7 @@ function install_proxmox_backup_client() { $update && local action='Updating' || local action='Installing' 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 TMPDIR=$(mktemp -d)