From d73f710a8f45a988103d66d78b8ecd119681867d Mon Sep 17 00:00:00 2001 From: Brian Krane Date: Fri, 12 Jul 2024 13:17:03 -0400 Subject: [PATCH] Adjusted logic. --- .github/workflows/phpcs.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 1d21635..c054b93 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -60,11 +60,14 @@ jobs: # ------------------------------------------------------------------------------ - name: Check for spaces in file paths run: | + # Check for spaces in each file path echo "$CHANGED_FILES" | while read -r file; do - if [[ "$file" =~ \ ]]; then - echo "Error: No files may contain spaces in their paths: $file" - exit 1 - fi + if [[ "$file" =~ \ ]]; then + echo "Error: No files may contain spaces in their paths:" + echo $file + exit 1 + fi + done # ------------------------------------------------------------------------------ # PHPCS # ------------------------------------------------------------------------------