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