From 7e603f78464cc9ce6ba87a56bd92e2e69205b6a4 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Tue, 26 Jul 2016 11:00:58 +0200 Subject: Use -z flag to properly test for stirng length. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sébastien Lesaint --- scripts/generate_batch_reports.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/generate_batch_reports.sh') 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 -- cgit v1.2.3