Skip to content

Commit d66a518

Browse files
committed
Resolve bash compatibility issue for macOS
1 parent 0bd53a3 commit d66a518

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎build.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function docker_build_with_version {
118118
#
119119
# That means that definition of the DEVEL_REPO_rhel8 variable is a responsibility of
120120
# the test/CI environment.
121-
if [ -f "$devel_repo_file" ] && [[ -v "$devel_repo_var" ]] ; then
121+
if [ -f "$devel_repo_file" ] && [ -n "${!devel_repo_var}" ] ; then
122122
CUSTOM_REPO=$(mktemp)
123123
curl -Lk "${!devel_repo_var}" >"${CUSTOM_REPO}"
124124
echo "-> $devel_repo_file file exists for version $dir, so using ${!devel_repo_var}."

0 commit comments

Comments
 (0)