aboutsummaryrefslogtreecommitdiffstats
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/start.sh b/start.sh
index 2b4f1d3ded6..9c3a25a20cc 100755
--- a/start.sh
+++ b/start.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
OS='macosx-universal-64'
@@ -6,13 +6,15 @@ else
OS='linux-x86-64'
fi
-if ! ls sonar-application/target/sonarqube-*.zip &> /dev/null; then
+ls sonar-application/target/sonarqube-*.zip 1> /dev/null 2>&1
+if [ "$?" != "0" ]; then
echo 'Sources are not built'
./build.sh
fi
cd sonar-application/target/
-if ! ls sonarqube-*/bin/$OS/sonar.sh &> /dev/null; then
+ls sonarqube-*/bin/$OS/sonar.sh 1> /dev/null 2>&1
+if [ "$?" != "0" ]; then
unzip sonarqube-*.zip
fi
cd sonarqube-*