Starting from bash 4.4, passing multiple arguments to `cd` will fail. https://askubuntu.com/questions/905832/ubuntu-17-04-bash-cd-too-many-arguments#905877tags/6.6-RC1
@@ -46,7 +46,7 @@ if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then | |||
echo "Unzipping SQ..." | |||
unzip -qq sonarqube-*.zip | |||
fi | |||
cd sonarqube-* | |||
cd $(find sonarqube-* -type d | head -1) | |||
SQ_HOME=$(pwd) | |||
cd "$ROOT" |