aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-07-26 11:00:58 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-08-18 10:01:25 +0200
commit7e603f78464cc9ce6ba87a56bd92e2e69205b6a4 (patch)
treefe3005011fc34c955ce356940abf3c5dac64d274
parent5da8e1cf99b4e7d9b1bc37ef874f4a1019acc663 (diff)
downloadsonarqube-7e603f78464cc9ce6ba87a56bd92e2e69205b6a4.tar.gz
sonarqube-7e603f78464cc9ce6ba87a56bd92e2e69205b6a4.zip
Use -z flag to properly test for stirng length.
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
-rwxr-xr-xscripts/generate_batch_reports.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_batch_reports.sh b/scripts/generate_batch_reports.sh
index c427e2bd8d2..00bcaf57b02 100755
--- a/scripts/generate_batch_reports.sh
+++ b/scripts/generate_batch_reports.sh
@@ -49,7 +49,7 @@ function showHelp() {
}
function checkOptions() {
- if [ "$DUMP_DIR" = "" ]; then
+ if [[ -z "$DUMP_DIR" ]]; then
>&2 echo "-d option is mandatory"
showHelp
exit 1