Skip to content

Commit

Permalink
Support old bash in daml-sdk-head (digital-asset#9593)
Browse files Browse the repository at this point in the history
changelog_begin
changelog_end
  • Loading branch information
cocreature authored May 6, 2021
1 parent 45fbdef commit 7ea9340
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dev-env/bin/daml-sdk-head
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ if [[ "$SKIP_JARS" -eq 0 ]]; then
if [[ "$SKIP_JAR_DOCS" -eq 1 ]]; then
RELEASE_ARGS+=(--no-docs)
fi
for version in ${SCALA_VERSIONS[@]}; do
# Note (MK) You might be wondering what this horrendous
# expansion is doing here. This is to guard against set -u
# behavior on bash < 4.4 which treat empty arrays as unbound variables.
# This expansion is shamelessly stolen from
# https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u
for version in ${SCALA_VERSIONS[@]+"${SCALA_VERSIONS[@]}"}; do
RELEASE_ARGS+=("--scala-version=$version")
done

Expand Down

0 comments on commit 7ea9340

Please sign in to comment.