Skip to content

Commit

Permalink
Fix for bash 5 unbound array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisjbell committed Dec 13, 2022
1 parent c95a37b commit ab124d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hooks/blueprint
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ function handle_okta_feature() {
}

declare -a merge
declare -a opsfiles
ops_var="merge"
want_feature "ocfp" && ops_var="opsfiles"
merge=( "manifests/concourse/base.yml"
"manifests/releases/concourse.yml"
"manifests/releases/slack-notifications.yml"
"manifests/concourse/jobs.yml" )

declare -a opsfiles
want_feature "ocfp" && ops_var="opsfiles"
opsfiles=() # needed to prevent bash v5 from thinking opsfiles is unbound

for want in ${GENESIS_REQUESTED_FEATURES}
do
case ${want} in
Expand Down

0 comments on commit ab124d6

Please sign in to comment.