From: Eduardo Ramos Testillano Date: Thu, 21 Jan 2016 17:54:42 +0000 (+0100) Subject: Fix empty parameter X-Git-Tag: REFACTORING_TESTING_LIBRARY~58 X-Git-Url: https://git.teslayout.com/public/public/public/?a=commitdiff_plain;h=a2e6aaf2df1e40e522ba2bbd17df3f51faba8f8d;p=anna.git Fix empty parameter --- 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: