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)