aboutsummaryrefslogtreecommitdiffstats
path: root/stop.sh
diff options
context:
space:
mode:
authorDaniel Schwarz <daniel.schwarz@sonarsource.com>2017-02-01 15:45:56 +0100
committerDaniel Schwarz <bartfastiel@users.noreply.github.com>2017-02-01 15:51:52 +0100
commit53f5702cd068b1245b02002b04685c41752451ca (patch)
treea8dfdce6d685a6bbd00c96c73a3fb71a30bd22ad /stop.sh
parentf294cc4de25fd978a8d532283078852a7fb2830e (diff)
downloadsonarqube-53f5702cd068b1245b02002b04685c41752451ca.tar.gz
sonarqube-53f5702cd068b1245b02002b04685c41752451ca.zip
avoid command line message if trying to stop without having unzipped
Diffstat (limited to 'stop.sh')
-rwxr-xr-xstop.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/stop.sh b/stop.sh
index 04eb5b3f10b..056b97401ad 100755
--- a/stop.sh
+++ b/stop.sh
@@ -8,4 +8,7 @@ else
OS='linux-x86-64'
fi
-sh sonar-application/target/sonarqube-*/bin/$OS/sonar.sh stop
+SONAR_SH=sonar-application/target/sonarqube-*/bin/$OS/sonar.sh
+if [ -f $SONAR_SH ]; then
+ sh $SONAR_SH stop
+fi