Skip to content

Commit

Permalink
Add Lint Plists job
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed May 5, 2024
1 parent b460860 commit bc95ab8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/Shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,24 @@ jobs:
echo "[FAIL] These files failed linting: ${ERRORS[*]}"
exit 1
fi
Lint Plists:
runs-on: macos-latest

steps:
- name: Lint
run: |
declare -a FILES

while IFS=$'\n' read -r file; do
FILES+=("${file}");
done < <(/usr/bin/find . -maxdepth 4 \
-type f \
\( -name "*.plist" -o -name "*.mobileconfig" \))

for file in "${FILES[@]}"; do
if ! /usr/bin/plutil -lint "${file}" ; then
echo "[FAIL] $(/usr/bin/basename "${file}")"
ERRORS+=("${file}")
fi
done

0 comments on commit bc95ab8

Please sign in to comment.