fix: use array subshell instead of mapfile for macOS compat

mapfile is not available on macOS default bash.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
snomiao
2026-03-26 01:22:05 +09:00
parent 3142c8ead6
commit 49fa1b3caa

View File

@@ -108,7 +108,8 @@ for num in "${NUMBERS[@]}"; do
done
# Deduplicate
mapfile -t NUMBERS < <(printf '%s\n' "${NUMBERS[@]}" | sort -un)
# shellcheck disable=SC2207 # mapfile not available on macOS default bash
NUMBERS=($(printf '%s\n' "${NUMBERS[@]}" | sort -un))
# --- Push branches ---
echo "Triggering QA for: ${NUMBERS[*]}"