From 5b63249087f3d084ff14326d1d514400410aecf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Wed, 1 Oct 2025 00:36:47 +0200 Subject: [PATCH] Update ct/sonarqube.sh --- ct/sonarqube.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ct/sonarqube.sh b/ct/sonarqube.sh index dcd4e37b..27a4ae05 100644 --- a/ct/sonarqube.sh +++ b/ct/sonarqube.sh @@ -28,8 +28,7 @@ function update_script() { exit fi - RELEASE=$(curl -s https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') - if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then + if check_for_gh_release "sonarqube" "SonarSource/sonarqube"; then msg_info "Updating ${APP} to v${RELEASE}" systemctl stop sonarqube