* [gentoo-portage-dev] [PATCH] estrip: Use find -delete instead of manual rm
@ 2018-09-17 15:04 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2018-09-17 15:04 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Michał Górny
---
bin/estrip | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/bin/estrip b/bin/estrip
index 5709b862c..3ee4b01ac 100755
--- a/bin/estrip
+++ b/bin/estrip
@@ -363,10 +363,9 @@ done < <(
)
else
while IFS= read -d '' -r x ; do
- rm -f "${x}" || die
inode_link=$(get_inode_number "${x%.estrip}") || die "stat failed unexpectedly"
echo "${x%.estrip}" >> "${inode_link}" || die "echo failed unexpectedly"
-done < <(find "${ED}" -name '*.estrip' -print0)
+done < <(find "${ED}" -name '*.estrip' -delete -print0)
fi
# Now we look for unstripped binaries.
--
2.19.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-17 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-17 15:04 [gentoo-portage-dev] [PATCH] estrip: Use find -delete instead of manual rm Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox