From 9878df20ba0396ffeb4791ba6af7d1cf29dcb935 Mon Sep 17 00:00:00 2001 From: EncodedVenom Date: Sat, 19 Oct 2024 20:02:05 -0400 Subject: [PATCH] Use bash entirely --- .github/workflows/analysis.yaml | 2 +- scripts/gh-warn-luau-analyze.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/analysis.yaml b/.github/workflows/analysis.yaml index 3723bcf8..f3b491a5 100644 --- a/.github/workflows/analysis.yaml +++ b/.github/workflows/analysis.yaml @@ -17,4 +17,4 @@ jobs: - name: Analyze run: | (luau-analyze src || true) > analyze-log.txt # Suppress errors for now. - cat analyze-log.txt | (bash ./scripts/gh-warn-luau-analyze.sh) + bash ./scripts/gh-warn-luau-analyze.sh analyze-log.txt diff --git a/scripts/gh-warn-luau-analyze.sh b/scripts/gh-warn-luau-analyze.sh index 81b170a5..a0cd996a 100644 --- a/scripts/gh-warn-luau-analyze.sh +++ b/scripts/gh-warn-luau-analyze.sh @@ -1,6 +1,4 @@ -while IFS="" read -r line || [ -n "$line" ]; do - - echo "$line" +cat $1 | while IFS="" read -r line || [ -n "$line" ]; do # Check if the line contains the error format if [[ "$line" == *"TypeError:"* ]]; then