From 3d1c424d234aee6a303fd193191cab9c90e151f5 Mon Sep 17 00:00:00 2001 From: mag37 Date: Sun, 19 Nov 2023 20:20:05 +0100 Subject: [PATCH] Update dockcheck.sh added a regctl-check for when regctl is within the pwd. (as suggested by @yoyoma2 ) --- dockcheck.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dockcheck.sh b/dockcheck.sh index 4939e66..7e2f9eb 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -114,6 +114,7 @@ IFS=',' read -r -a Excludes <<< "$Exclude" ; unset IFS ### Check if required binary exists in PATH or directory: if [[ $(builtin type -P "regctl") ]]; then regbin="regctl" ; elif [[ -f "./regctl" ]]; then regbin="./regctl" ; +elif [[ -f "$ScriptWorkDir/regctl" ]]; then regbin="$ScriptWorkDir/regctl" ; else read -r -p "Required dependency 'regctl' missing, do you want it downloaded? y/[n] " GetDep if [[ "$GetDep" =~ [yY] ]] ; then