From 537606f1dd2bb0455320274f6ce9818009dddb06 Mon Sep 17 00:00:00 2001 From: McAmner Date: Sun, 2 Aug 2026 22:56:27 +0200 Subject: [PATCH] fix(ci): support macOS system Bash --- .github/workflows/check-prompts.yml | 11 +++++++++++ scripts/check-prompts.sh | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-prompts.yml b/.github/workflows/check-prompts.yml index bed49f3..3505bba 100644 --- a/.github/workflows/check-prompts.yml +++ b/.github/workflows/check-prompts.yml @@ -57,6 +57,17 @@ jobs: - name: Run prompt check run: bash scripts/check-prompts.sh + check-prompts-macos: + name: Prompt metadata check (macOS Bash 3.2) + runs-on: macos-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Run prompt check with system Bash + run: /bin/bash scripts/check-prompts.sh + check-docs: name: Docs consistency check runs-on: ubuntu-latest diff --git a/scripts/check-prompts.sh b/scripts/check-prompts.sh index 5c6fc42..ed668c9 100755 --- a/scripts/check-prompts.sh +++ b/scripts/check-prompts.sh @@ -133,7 +133,7 @@ fi echo "" echo "[ mode coverage ]" while IFS= read -r mode_name; do - mode_id="${mode_name,,}" + mode_id="$(printf '%s' "$mode_name" | tr '[:upper:]' '[:lower:]')" if [[ -f "$MODES_DIR/$mode_id.md" ]]; then ok "$mode_id.md exists" else