diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-03-28 14:18:20 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-09-17 20:17:18 +0200 |
commit | ebe96286279fde6dfc989d03e5da834f0382d1a2 (patch) | |
tree | e7d2450d1d7375acc2cdcf5972cf6d875e1f6100 | |
parent | f{owners,perms}: Warn when using relative path (diff) | |
download | portage-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-x | bin/estrip | 3 |
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. |