-
-
Save ArchTaqi/d45e3d16c7ee05b4860effe119158041 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-3.2.0.1227-linux.zip" ];then | |
sudo rm /tmp/sonar-scanner-cli-3.2.0.1227-linux.zip | |
fi | |
wget -q https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.5.0.2216-linux.zip | |
echo "Download completed." | |
echo "Unziping downloaded file..." | |
unzip sonar-scanner-cli-4.5.0.2216-linux.zip | |
echo "Unzip completed." | |
rm sonar-scanner-cli-4.5.0.2216-linux.zip | |
echo "Installing to opt..." | |
if [ -d "/var/opt/sonar-scanner-4.5.0.2216-linux" ];then | |
sudo rm -rf /var/opt/sonar-scanner-4.5.0.2216-linux | |
fi | |
sudo mv sonar-scanner-4.5.0.2216-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