Browse Source

Use -z flag to properly test for stirng length.

Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
tags/6.1-RC1
Patrice Clement 7 years ago
parent
commit
7e603f7846
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      scripts/generate_batch_reports.sh

+ 1
- 1
scripts/generate_batch_reports.sh View File

@@ -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

Loading…
Cancel
Save