Skip to content

Commit

Permalink
lint-plists: Add code to check ERRORS array
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed May 5, 2024
1 parent 285a85b commit f0efa99
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/Shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,13 @@ jobs:
ERRORS+=("${file}")
fi
done
if [[ ${#ERRORS[@]} -eq 0 ]]; then
# If ERRORS empty then
echo "[PASS] No errors, hooray"
exit 0
else
# If ERRORS not empty, print the names of files which failed
echo "[FAIL] These files failed linting: ${ERRORS[*]}"
exit 1
fi

0 comments on commit f0efa99

Please sign in to comment.