aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2017-07-24 09:55:16 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2017-07-24 09:55:16 +0200
commit4faf1e19c2c7e7214c4975c8a5e50b8a057bca4a (patch)
treecccb66b9cd586c6b5da8dcdbe44a3c480207ddd8 /scripts
parente1ff5fc28e65b7513caa954359d7467b899a26d4 (diff)
downloadsonarqube-4faf1e19c2c7e7214c4975c8a5e50b8a057bca4a.tar.gz
sonarqube-4faf1e19c2c7e7214c4975c8a5e50b8a057bca4a.zip
Fix start.sh to support bash CD_COMPLAINS
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#905877
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/start.sh b/scripts/start.sh
index c4fce72fcec..24240bf7e54 100755
--- a/scripts/start.sh
+++ b/scripts/start.sh
@@ -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"