Loading
fetchurl: builder.sh: handle `urls` as a Bash array
Clean up leftover for commit cd13136f ("fetchurl: use __structuredAttrs = true and pass curlOptsList directly") Continue the work of commit 23236b33 ("fetchurl: fix handling of fallback URLs"), addressing a Bash array re-assignment quirk: when assigning a Bash array variable as if it were a plain variable, the value goes to the first element, and the rest of the array stays the same. ```console $ foo=(a b) $ declare -p foo declare -a foo=([0]="a" [1]="b") $ foo="c d" $ declare -p foo declare -a foo=([0]="c d" [1]="b") ``` Don't rewrite the `${urls[@]}` with resolved URLs, but hold them with `${resolvedUrls[@]}` instead. Co-authored-by:Matt Sturgeon <matt@sturgeon.me.uk> Co-authored-by:
Wolfgang Walther <walther@technowledgy.de>