Skip to content

Commit

Permalink
Adjusted logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
redscar committed Jul 12, 2024
1 parent faceac2 commit d73f710
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit d73f710

Please sign in to comment.