SHA256
fix version sorting when determining debian pkg to download
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user