Skip to content

Commit

Permalink
ci: check-trailing-spaces: Does nothing if trailing spaces are not found
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Aug 31, 2023
1 parent f84d96d commit 8459117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-trailing-spaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
if [[ $FILE == *.md ]]; then
echo "Checking file $FILE"
git diff FETCH_HEAD..HEAD -- $FILE | grep -P '^\+' | grep -P '\s+$' && \
echo "Trailing spaces found in $FILE" && exit 1
echo "Trailing spaces found in $FILE" && exit 1 || :;
fi
done

0 comments on commit 8459117

Please sign in to comment.