Skip to content

Commit

Permalink
Safe xargs rm usage
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 17, 2017
1 parent 0e59c7f commit 37eb408
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snapcraft.yaml
Expand Up @@ -52,6 +52,6 @@ parts:
- ipykernel>=4.0.0
build-packages: [libjpeg-dev]
install: |
find $SNAPCRAFT_PART_INSTALL -name '*.a'|xargs -r rm
find $SNAPCRAFT_PART_INSTALL -name 'terminado' -type d|xargs -r rm -rf
find $SNAPCRAFT_PART_INSTALL -name 'tornado' -type d|xargs -r rm -rf
find $SNAPCRAFT_PART_INSTALL -name '*.a' -print0 | xargs -0r rm
find $SNAPCRAFT_PART_INSTALL -name 'terminado' -type d -print0 | xargs -0r rm -rf
find $SNAPCRAFT_PART_INSTALL -name 'tornado' -type d -print0 | xargs -0r rm -rf

0 comments on commit 37eb408

Please sign in to comment.