mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-18 11:58:25 +01:00
Portabase: check rclone and restic releases the usual way
check_for_gh_release already reports a tool without a version file as new, so the extra existence checks only hid its release line.
This commit is contained in:
1 parent
4a39628310
commit
90e901ce9f
1 file changed
+2
-2
+2
-2
@@ -32,11 +32,11 @@ function update_script() {
|
||||
fi
|
||||
|
||||
TOOLS_CHANGED=false
|
||||
if ! command -v rclone >/dev/null || check_for_gh_release "rclone" "rclone/rclone"; then
|
||||
if check_for_gh_release "rclone" "rclone/rclone"; then
|
||||
TOOLS_CHANGED=true
|
||||
fetch_and_deploy_gh_release "rclone" "rclone/rclone" "binary" "latest" "" "rclone-v*-linux-$(arch_resolve).deb"
|
||||
fi
|
||||
if [[ ! -x /usr/local/bin/restic ]] || check_for_gh_release "restic" "restic/restic"; then
|
||||
if check_for_gh_release "restic" "restic/restic"; then
|
||||
TOOLS_CHANGED=true
|
||||
fetch_and_deploy_gh_release "restic" "restic/restic" "singlefile" "latest" "/usr/local/bin" "restic_*_linux_$(arch_resolve).bz2"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user