aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-03-28 14:18:20 +0200
committerMichał Górny <mgorny@gentoo.org>2018-09-17 20:17:18 +0200
commitebe96286279fde6dfc989d03e5da834f0382d1a2 (patch)
treee7d2450d1d7375acc2cdcf5972cf6d875e1f6100
parentf{owners,perms}: Warn when using relative path (diff)
downloadportage-ebe96286279fde6dfc989d03e5da834f0382d1a2.tar.gz
portage-ebe96286279fde6dfc989d03e5da834f0382d1a2.tar.bz2
portage-ebe96286279fde6dfc989d03e5da834f0382d1a2.zip
estrip: Use find -delete instead of manual rm
Reviewed-by: Zac Medico <zmedico@gentoo.org> Closes: https://github.com/gentoo/portage/pull/364
-rwxr-xr-xbin/estrip3
1 files changed, 1 insertions, 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.