Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmewes/f2be9b9b0a1c9ab12e8a74efc705fc37 to your computer and use it in GitHub Desktop.
Save jmewes/f2be9b9b0a1c9ab12e8a74efc705fc37 to your computer and use it in GitHub Desktop.
Install sonar-scanner in linux mint, ubuntu...
#!/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-3.2.0.1227-linux.zip
echo "Download completed."
echo "Unziping downloaded file..."
unzip sonar-scanner-cli-3.2.0.1227-linux.zip
echo "Unzip completed."
rm sonar-scanner-cli-3.2.0.1227-linux.zip
echo "Installing to opt..."
if [ -d "/var/opt/sonar-scanner-3.2.0.1227-linux" ];then
sudo rm -rf /var/opt/sonar-scanner-3.2.0.1227-linux
fi
sudo mv sonar-scanner-3.2.0.1227-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