From af0f2b5420e9f5b8baca532f6b582c67140fffd6 Mon Sep 17 00:00:00 2001 From: 0xmachos <0xmachos@gmail.com> Date: Sun, 5 May 2024 15:28:15 +0100 Subject: [PATCH] Lint PlistsL Fix indentation --- .github/workflows/Shellcheck.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/Shellcheck.yml b/.github/workflows/Shellcheck.yml index 66153ba..29d92b1 100644 --- a/.github/workflows/Shellcheck.yml +++ b/.github/workflows/Shellcheck.yml @@ -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