Skip to content

Commit

Permalink
Use -z flag to properly test for stirng length.
Browse files Browse the repository at this point in the history
Signed-off-by: Sébastien Lesaint <sebastien.lesaint@sonarsource.com>
  • Loading branch information
monsieurp authored and sns-seb committed Aug 18, 2016
1 parent 5da8e1c commit 7e603f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_batch_reports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e603f7

Please sign in to comment.