Skip to content

Commit 39680d7

Browse files
committed
fix for older bash
Signed-off-by: Jared Quick <jared.quick@salesforce.com>
1 parent 4cb286f commit 39680d7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/shared.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ function build_image_override_file_with_version() {
170170
cache_from_amt="${1:-0}"
171171
[[ -n "${1:-}" ]] && shift; # remove the value if not empty
172172
if [[ "${cache_from_amt}" -gt 0 ]]; then
173+
cache_from=()
173174
for _ in $(seq 1 "$cache_from_amt"); do
174175
cache_from+=( "$1" ); shift
175176
done
@@ -179,6 +180,7 @@ function build_image_override_file_with_version() {
179180
labels_amt="${1:-0}"
180181
[[ -n "${1:-}" ]] && shift; # remove the value if not empty
181182
if [[ "${labels_amt}" -gt 0 ]]; then
183+
labels=()
182184
for _ in $(seq 1 "$labels_amt"); do
183185
labels+=( "$1" ); shift
184186
done

0 commit comments

Comments
 (0)