From cb8b4d8d95ff8627b4d32d119bc8ca8ea44688c5 Mon Sep 17 00:00:00 2001 From: Ilya Date: Wed, 27 May 2026 22:37:54 +0300 Subject: [PATCH] Resolve bash compatibility issue for macOS --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 093e801..8234da6 100755 --- a/build.sh +++ b/build.sh @@ -118,7 +118,7 @@ function docker_build_with_version { # # That means that definition of the DEVEL_REPO_rhel8 variable is a responsibility of # the test/CI environment. - if [ -f "$devel_repo_file" ] && [[ -v "$devel_repo_var" ]] ; then + if [ -f "$devel_repo_file" ] && [ -n "${!devel_repo_var}" ] ; then CUSTOM_REPO=$(mktemp) curl -Lk "${!devel_repo_var}" >"${CUSTOM_REPO}" echo "-> $devel_repo_file file exists for version $dir, so using ${!devel_repo_var}."