diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2017-07-24 09:55:16 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2017-07-24 09:55:16 +0200 |
commit | 4faf1e19c2c7e7214c4975c8a5e50b8a057bca4a (patch) | |
tree | cccb66b9cd586c6b5da8dcdbe44a3c480207ddd8 /scripts | |
parent | e1ff5fc28e65b7513caa954359d7467b899a26d4 (diff) | |
download | sonarqube-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-x | scripts/start.sh | 2 |
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" |