diff options
author | Janos Gyerik <janos@kronos> | 2016-11-17 23:41:37 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-11-23 14:17:24 +0100 |
commit | 6946d773d9f2f583cd6ed37aef4e2395988d6c3f (patch) | |
tree | 19b60d152e1cd95d33e0253adb30c20d95f3419e /scripts/start.sh | |
parent | 7ed6224f075687ceb6d3aa5a2c531d69fea1fc34 (diff) | |
download | sonarqube-6946d773d9f2f583cd6ed37aef4e2395988d6c3f.tar.gz sonarqube-6946d773d9f2f583cd6ed37aef4e2395988d6c3f.zip |
[script] Use conditons on cmd directly instead of indirectly on $?
Diffstat (limited to 'scripts/start.sh')
-rwxr-xr-x | scripts/start.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/start.sh b/scripts/start.sh index 6f23990f827..62531e985d6 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -24,15 +24,13 @@ else OS='linux-x86-64' fi -ls sonar-application/target/sonarqube-*.zip &> /dev/null -if [ "$?" != "0" ]; then +if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then echo 'Sources are not built' ./build.sh fi cd sonar-application/target/ -ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null -if [ "$?" != "0" ]; then +if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then echo "Unzipping SQ..." unzip -qq sonarqube-*.zip fi |