From 464c5ff4c23de5602829fa081ecc42e839fae098 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 16 Jun 2012 22:04:52 -0500 Subject: [PATCH] script/gentree: have find invoke chmod or touch instead of piping to xargs --- script/gentree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/gentree b/script/gentree index f7d7a8a..e7eeb76 100755 --- a/script/gentree +++ b/script/gentree @@ -309,7 +309,7 @@ do_imgconf() { # This will screw up permissions when applied to /conf/{base,default}/* # so do it before their creation chk chown -R :operator "${sconf}" - ( find "${sconf}" -print0 | xargs -0 chmod o-rwx ) || chk + ( find "${sconf}" -exec chmod o-rwx {} + ) || chk # Create packdirs for each for pack in "${cnfd}"/*.md_size @@ -374,7 +374,7 @@ do_custom() { do pack="$(basename "${file%%.cpio.gz}")" zcat "${file}" | ( cd "${tree}/pack"; cpio -id ) || chk - find "${tree}/pack" -type f -print0 | xargs -0 touch + find "${tree}/pack" -type f -exec touch {} + ( cd "${tree}/pack"; find . | cpio -o ) | gzip -9 > "${file}" chk rm -Rf "${tree}/pack"/* done -- 2.42.0