mirror of
https://github.com/mag37/dockcheck.git
synced 2026-02-14 23:38:15 +01:00
Update dockcheck.sh
added a regctl-check for when regctl is within the pwd. (as suggested by @yoyoma2 )
This commit is contained in:
parent
132fda3388
commit
3d1c424d23
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue