From a2e6aaf2df1e40e522ba2bbd17df3f51faba8f8d Mon Sep 17 00:00:00 2001 From: Eduardo Ramos Testillano Date: Thu, 21 Jan 2016 18:54:42 +0100 Subject: [PATCH] Fix empty parameter --- example/diameter/launcher/resources/scripts/tinyTestcase.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/diameter/launcher/resources/scripts/tinyTestcase.sh b/example/diameter/launcher/resources/scripts/tinyTestcase.sh index f2b30d5..b588dc2 100755 --- a/example/diameter/launcher/resources/scripts/tinyTestcase.sh +++ b/example/diameter/launcher/resources/scripts/tinyTestcase.sh @@ -59,7 +59,7 @@ usage() { echo echo " timeout:" echo - echo " Timeout in seconds for the testcase. By default, no timeout will be programmed for the testcase." + echo " Timeout in seconds for the testcase. If not provided, no timeout will be programmed for the testcase." echo echo echo @@ -119,6 +119,7 @@ update_testcase () { ############# echo SOURCE_DIR=$1 +│[ -z "$SOURCE_DIR" ] && usage SOURCE_DIR=`readlink -f $SOURCE_DIR` [ ! -d "$SOURCE_DIR" ] && _exit "Can't found provided directory '$SOURCE_DIR'" # Work on source directory: -- 2.20.1