Skip to content

Commit

Permalink
templates: fix check for unset variable
Browse files Browse the repository at this point in the history
openshift#6718 added `set -u` to scripts
that access unset variables.
  • Loading branch information
bbguimaraes committed Jan 16, 2020
1 parent c7a5f4c commit 752455a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ objects:
fi
# TODO: Replace with a more concise manifest injection approach
if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then
if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then
openshift-install --dir=/tmp/artifacts/installer/ create manifests
echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ objects:
fi
# TODO: Replace with a more concise manifest injection approach
if [[ -n "${CLUSTER_NETWORK_MANIFEST}" ]]; then
if [[ -n "${CLUSTER_NETWORK_MANIFEST:-}" ]]; then
openshift-install --dir=/tmp/artifacts/installer/ create manifests
echo "${CLUSTER_NETWORK_MANIFEST}" > /tmp/artifacts/installer/manifests/cluster-network-03-config.yml
fi
Expand Down

0 comments on commit 752455a

Please sign in to comment.