Skip to content

Commit fcb8dbd

Browse files
Sniderclaude
andcommitted
fix(options): remove bash 4.x associative arrays for macOS compat
Use string-based deduplication instead of declare -A. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bbb9b27 commit fcb8dbd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

actions/options/action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ runs:
4848
raw="${raw//,/ }"
4949
# collapse multiple spaces
5050
raw=$(echo "$raw" | tr -s ' ')
51-
declare -A seen=()
51+
# deduplicate tags (bash 3.x compatible - no associative arrays)
5252
for t in $raw; do
53-
if [[ -n "$t" && -z "${seen[$t]:-}" ]]; then
54-
seen[$t]=1
53+
if [[ -n "$t" ]] && [[ " $norm_tags " != *" $t "* ]]; then
5554
norm_tags+=" $t"
5655
fi
5756
done

0 commit comments

Comments
 (0)