Discussion:
[gentoo-portage-dev] [PATCH] estrip: Use find -delete instead of manual rm
Michał Górny
2018-09-17 15:04:14 UTC
Permalink
---
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
Loading...