Skip to content

Commit b165016

Browse files
authored
Create temp file for SonarQube download
Added temporary file creation for SonarQube installation.
1 parent 003d632 commit b165016

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ct/sonarqube.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function update_script() {
3939
msg_ok "Backup created"
4040

4141
msg_info "Installing sonarqube"
42+
temp_file=$(mktemp)
4243
RELEASE=$(curl -fsSL https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
4344
curl -fsSL "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${RELEASE}.zip" -o $temp_file
4445
unzip -q "$temp_file" -d /opt

0 commit comments

Comments
 (0)