Skip to content
Permalink
Browse files

Safe xargs rm usage

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 17, 2017
1 parent 0e59c7f commit 37eb408ad33b3c6db914bda9eaacfecec065d39e
Showing with 3 additions and 3 deletions.
  1. +3 −3 snapcraft.yaml
@@ -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.