From 909a1beb84280a0aabfa0a7064e0794a8590a4fd Mon Sep 17 00:00:00 2001 From: Saagar Date: Sun, 17 May 2026 03:34:10 -0700 Subject: [PATCH] fix(ci): make artifact guard macOS-compatible --- scripts/check_local_artifacts.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/check_local_artifacts.sh b/scripts/check_local_artifacts.sh index e2908dd..c24ff30 100755 --- a/scripts/check_local_artifacts.sh +++ b/scripts/check_local_artifacts.sh @@ -4,16 +4,15 @@ set -euo pipefail repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "$repo_root" -mapfile -t tracked_files < <(git ls-files) offenders=() -for path in "${tracked_files[@]}"; do +while IFS= read -r path; do case "$path" in *.DS_Store|target/*|.codex_audit/*) offenders+=("$path") ;; esac -done +done < <(git ls-files) if [ "${#offenders[@]}" -gt 0 ]; then echo "Local artifact guard failed."