Last active
February 20, 2019 08:14
-
-
Save petrabarus/dfd524ece9561ae3647e822aafa9acef to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
VERSION=3.3.0.1492-linux | |
echo "Downloading sonar-scanner....." | |
rm -rfv /tmp/sonar-scanner-cli-$VERSION.zip | |
wget -P /tmp/ -q https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$VERSION.zip | |
echo "Download completed." | |
echo "Unziping downloaded file..." | |
unzip /tmp/sonar-scanner-cli-$VERSION.zip -d /tmp/ | |
echo "Unzip completed." | |
rm /tmp/sonar-scanner-cli-$VERSION.zip | |
echo "Installing" | |
sudo ln -s /tmp/sonar-scanner-$VERSION/bin/sonar-scanner /usr/bin/sonar-scanner | |
echo "Installation completed successfully." | |
sonar-scanner --version | |
echo "You can use sonar-scanner!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment