diff options
author | Janos Gyerik <janos@kronos> | 2016-11-17 23:43:10 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-11-23 14:17:29 +0100 |
commit | a884c4e4b250597d9cdd47ddca22d053839db32f (patch) | |
tree | 923f38fae181bd65017f75eec3c0cda7d15ec27e | |
parent | 6946d773d9f2f583cd6ed37aef4e2395988d6c3f (diff) | |
download | sonarqube-a884c4e4b250597d9cdd47ddca22d053839db32f.tar.gz sonarqube-a884c4e4b250597d9cdd47ddca22d053839db32f.zip |
[script] Double-quote to prevent globbing and word splitting
-rwxr-xr-x | scripts/start.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/start.sh b/scripts/start.sh index 62531e985d6..0395b15b998 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -39,20 +39,20 @@ cd sonarqube-* # from that point on, strict bash set -euo pipefail SQ_HOME=$(pwd) -cd $ROOT +cd "$ROOT" -source $ROOT/scripts/patches_utils.sh +source "$ROOT"/scripts/patches_utils.sh SQ_EXEC=$SQ_HOME/bin/$OS/sonar.sh -$SQ_EXEC stop +"$SQ_EXEC" stop # invoke patches if at least one was specified # each patch is passed the path to the SQ instance home directory as first and only argument if [ "$PATCHES" != "" ]; then - call_patches $PATCHES $SQ_HOME + call_patches "$PATCHES" "$SQ_HOME" fi -$SQ_EXEC start +"$SQ_EXEC" start sleep 1 -tail -100f $SQ_HOME/logs/sonar.log +tail -100f "$SQ_HOME"/logs/sonar.log |