Skip to content

Commit 752455a

Browse files
committed
templates: fix check for unset variable
openshift#6718 added `set -u` to scripts that access unset variables.
1 parent c7a5f4c commit 752455a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci-operator/templates/openshift/installer/cluster-launch-installer-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ objects:
690690
fi
691691
692692
# TODO: Replace with a more concise manifest injection approach
693-
if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then
693+
if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then
694694
openshift-install --dir=/tmp/artifacts/installer/ create manifests
695695
echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml
696696
fi

ci-operator/templates/openshift/installer/cluster-launch-installer-src.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ objects:
529529
fi
530530
531531
# TODO: Replace with a more concise manifest injection approach
532-
if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then
532+
if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then
533533
openshift-install --dir=/tmp/artifacts/installer/ create manifests
534534
echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml
535535
fi

0 commit comments

Comments
 (0)