summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2013-01-01 08:43:49 +0100
committerDaniel Baumann <mail@daniel-baumann.ch>2013-05-06 14:50:03 +0200
commit3cc4d4f87a0f5a52b1ed26b53d62cba2d370d672 (patch)
treea870bc644f26ef85ac1ea6a381404d6bdf00dca5 /examples
parent62d94a445479bdccad50f919f4c68ef327b2c40b (diff)
downloadvyos-live-build-3cc4d4f87a0f5a52b1ed26b53d62cba2d370d672.tar.gz
vyos-live-build-3cc4d4f87a0f5a52b1ed26b53d62cba2d370d672.zip
Updating removal of backup files in stripped example hook to also work with spaces in filenames.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/hooks/stripped.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hooks/stripped.chroot b/examples/hooks/stripped.chroot
index 7af719e77..9ebe5bc12 100755
--- a/examples/hooks/stripped.chroot
+++ b/examples/hooks/stripped.chroot
@@ -31,7 +31,7 @@ done
apt-get autoremove --yes || true
# Removing unused files
-find . -name *~ | xargs rm -f
+find . -name *~ -print0 | xargs -0 rm -f
rm -rf /usr/include/*
#rm -rf /usr/share/groff/*