Skip to content

Commit

Permalink
Add -r flag to xargs commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hankehly authored and auvipy committed Nov 3, 2022
1 parent 9859a5e commit d5a1776
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ $(CONTRIBUTING):
contrib: clean-contrib $(CONTRIBUTING)

clean-pyc:
-find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs rm
-find . -type d -name "__pycache__" | xargs rm -r
-find . -type f -a \( -name "*.pyc" -o -name "*$$py.class" \) | xargs -r rm
-find . -type d -name "__pycache__" | xargs -r rm -r

removepyc: clean-pyc

Expand Down

0 comments on commit d5a1776

Please sign in to comment.