Skip to content

Commit

Permalink
fix: handle empty rm with xargs
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos authored and gitbutler-client committed Aug 13, 2024
1 parent b2fa72a commit 6b3a828
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/jekyll-link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ jobs:
- name: Clean redirections
run: |
# Remove the redirect-files before link-check
find _site/ -name \*.html | \
xargs grep -l "Click here if you are not redirected." | xargs rm
find _site/ -name \*.html -print0 | \
xargs -0 -n 100 --no-run-if-empty grep -l "Click here if you are not redirected." | \
xargs --no-run-if-empty rm
- name: Clean code elements from html
run: |
Expand Down

0 comments on commit 6b3a828

Please sign in to comment.