Skip to content

Commit

Permalink
Lint PlistsL Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmachos committed May 5, 2024
1 parent bc95ab8 commit af0f2b5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/Shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ jobs:
steps:
- name: Lint
run: |
declare -a FILES
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" \))
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
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 af0f2b5

Please sign in to comment.