CI: Fix appending to an array

Parentheses are required to add a new element to an array, not to the
first element of the array.
This commit is contained in:
Nobuyoshi Nakada 2025-07-02 12:37:08 +09:00
parent 8bf13f2605
commit d314673115
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -21,7 +21,7 @@ runs:
dir_config() {
local args=() lib var="$1"; shift
for lib in "$@"; do
args+="--with-${lib%@*}-dir=$(brew --prefix $lib)"
args+=("--with-${lib%@*}-dir=$(brew --prefix $lib)")
done
echo "$var=${args[*]}" >> $GITHUB_ENV
}