From dc0fd31e07b6c6041b65fc0167c05def50c6b5dc Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 18 Feb 2019 17:23:38 +0100 Subject: [PATCH] fix scripts parameter --- home.admin/config.scripts/internet.dyndomain.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/home.admin/config.scripts/internet.dyndomain.sh b/home.admin/config.scripts/internet.dyndomain.sh index 4a8ffc4..ce2be62 100755 --- a/home.admin/config.scripts/internet.dyndomain.sh +++ b/home.admin/config.scripts/internet.dyndomain.sh @@ -11,11 +11,17 @@ fi turn="off" if [ "$1" = "1" ] || [ "$1" = "on" ]; then turn="on"; fi +echo "number of args($#)" + # 2. parameter [?domainName] -dynDomain=$2 +if [ $# > 1 ]; then + dynDomain=$2 +fi # 3. parameter [?domainName] -dynUpdateUrl=$3 +if [ $# > 2 ]; then + dynUpdateUrl=$3 +fi # run interactive if 'turn on' && no further parameters if [ "${turn}" = "on" ] && [ ${#dynDomain} -eq 0 ]; then