Forked from chetanppatil/install-sonar-scanner.sh
Last active
December 19, 2019 09:20
-
-
Save abnerCrack/9e474c7712812ea4b631cf71212cea4b to your computer and use it in GitHub Desktop.
Install sonar-scanner in linux mint, ubuntu...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /tmp || exit | |
echo "Downloading sonar-scanner....." | |
if [ -d "/tmp/sonar-scanner-cli-4.0.0.1744-linux.zip" ];then | |
sudo rm /tmp/sonar-scanner-cli-4.0.0.1744-linux.zip | |
fi | |
wget -q https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.0.0.1744-linux.zip | |
echo "Download completed." | |
echo "Unziping downloaded file..." | |
unzip sonar-scanner-cli-4.0.0.1744-linux.zip | |
echo "Unzip completed." | |
rm sonar-scanner-cli-4.0.0.1744-linux.zip | |
echo "Installing to opt..." | |
if [ -d "/var/opt/sonar-scanner-4.0.0.1744-linux" ];then | |
sudo rm -rf /var/opt/sonar-scanner-4.0.0.1744-linux | |
fi | |
sudo mv sonar-scanner-4.0.0.1744-linux /var/opt | |
echo "Installation completed successfully." | |
echo "You can use sonar-scanner!" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment