aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/start.sh
diff options
context:
space:
mode:
authorJanos Gyerik <janos@kronos>2016-11-17 23:41:37 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-11-23 14:17:24 +0100
commit6946d773d9f2f583cd6ed37aef4e2395988d6c3f (patch)
tree19b60d152e1cd95d33e0253adb30c20d95f3419e /scripts/start.sh
parent7ed6224f075687ceb6d3aa5a2c531d69fea1fc34 (diff)
downloadsonarqube-6946d773d9f2f583cd6ed37aef4e2395988d6c3f.tar.gz
sonarqube-6946d773d9f2f583cd6ed37aef4e2395988d6c3f.zip
[script] Use conditons on cmd directly instead of indirectly on $?
Diffstat (limited to 'scripts/start.sh')
-rwxr-xr-xscripts/start.sh6
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