From b16501652ce0e8e499ede8d59a72281c638ab07c Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:54:37 +0100 Subject: [PATCH] Create temp file for SonarQube download Added temporary file creation for SonarQube installation. --- ct/sonarqube.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ct/sonarqube.sh b/ct/sonarqube.sh index aa8dee3ad..821c6479f 100644 --- a/ct/sonarqube.sh +++ b/ct/sonarqube.sh @@ -39,6 +39,7 @@ function update_script() { msg_ok "Backup created" msg_info "Installing sonarqube" + temp_file=$(mktemp) RELEASE=$(curl -fsSL https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') curl -fsSL "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${RELEASE}.zip" -o $temp_file unzip -q "$temp_file" -d /opt