From b0f8431dbf8f6aa835b95a552c7edd2c0c3b215d Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 3 Jun 2024 22:49:14 +0200 Subject: [PATCH] Update dockcheck.sh timeout default fix --- dockcheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockcheck.sh b/dockcheck.sh index fe0a74e..a2dc51f 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -44,6 +44,7 @@ c_blue="\033[0;34m" c_teal="\033[0;36m" c_reset="\033[0m" +Timeout=10 Stopped="" while getopts "aynpfrhlisvme:d:t:" options; do case "${options}" in @@ -57,7 +58,7 @@ while getopts "aynpfrhlisvme:d:t:" options; do e) Exclude=${OPTARG} ;; m) declare c_{red,green,yellow,blue,teal,reset}="" ;; s) Stopped="-a" ;; - t) Timeout="${OPTARG:-10}" ;; + t) Timeout="${OPTARG}" ;; v) printf "%s\n" "$VERSION" ; exit 0 ;; d) DaysOld=${OPTARG} if ! [[ $DaysOld =~ ^[0-9]+$ ]] ; then { printf "Days -d argument given (%s) is not a number.\n" "${DaysOld}" ; exit 2 ; } ; fi ;;