From 710cbc118f08057f0d5d1a3847acfa289eb69607 Mon Sep 17 00:00:00 2001 From: mag37 Date: Mon, 31 Mar 2025 07:22:22 +0200 Subject: [PATCH] fix: Excludes unbound --- dockcheck.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockcheck.sh b/dockcheck.sh index 74f4deb..3e02bcd 100755 --- a/dockcheck.sh +++ b/dockcheck.sh @@ -271,9 +271,9 @@ dependency_check() { [[ $(uname -s) == "Darwin" && "$AppName" == "regctl" ]] && AppName="regclient" if $PkgInstaller "$AppName"; then AppName="$1" - export "$AppVar"="$AppName" + export "$AppVar"="$AppName" printf "\n%b%b installed.%b\n" "$c_green" "$AppName" "$c_reset" - else + else PkgExitcode="ERROR" printf "\n%bPackagemanager install failed%b, falling back to static binary.\n" "$c_yellow" "$c_reset" fi @@ -380,7 +380,7 @@ check_image() { # Make required functions and variables available to subprocesses export -f check_image datecheck -export Excludes_string="${Excludes[*]}" # Can only export scalar variables +export Excludes_string="${Excludes[*]:-}" # Can only export scalar variables export t_out regbin RepoUrl DaysOld # Check for POSIX xargs with -P option, fallback without async