From 2b58a57b3d4e1fa4b229d05c3f557af90c16e983 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Jun 2025 16:08:01 +0200 Subject: [PATCH] test --- install/debian-install.sh | 4 +++- misc/tools.func | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/install/debian-install.sh b/install/debian-install.sh index 1bb65f6a..45606644 100644 --- a/install/debian-install.sh +++ b/install/debian-install.sh @@ -17,7 +17,9 @@ msg_info "Installing Dependencies" #$STD apt-get install -y gnup msg_ok "Installed Dependencies" -PYTHON_VERSION="3.12" setup_uv +fetch_and_deploy_gh_release "argus" "release-argus/Argus" "prebuild" "latest" "/opt/argus" "Argus-.*\.linux-amd64" + +#PYTHON_VERSION="3.12" setup_uv #echo -e "fetching healthchecks" #fetch_and_deploy_gh_release "healthchecks" "healthchecks/healthchecks" "tarball" "latest" "/opt/healthchecks" diff --git a/misc/tools.func b/misc/tools.func index 7f2a81d7..15d3f110 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -854,7 +854,7 @@ function fetch_and_deploy_gh_release() { local assets asset_url="" assets=$(echo "$json" | jq -r '.assets[].browser_download_url') for u in $assets; do - if [[ "$u" =~ $pattern || "$u" == *"$pattern" ]]; then + if [[ "$u" == *"$pattern"* ]]; then asset_url="$u" break fi