From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04386138334 for ; Sun, 24 Mar 2019 20:53:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 40392E0AC1; Sun, 24 Mar 2019 20:52:37 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EE231E0ABB for ; Sun, 24 Mar 2019 20:52:36 +0000 (UTC) Received: from tuxk10.localnet (91-119-19-8.dsl.dynamic.surfer.at [91.119.19.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: asturm@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3B69A335D4A for ; Sun, 24 Mar 2019 20:52:35 +0000 (UTC) From: Andreas Sturmlechner To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] [PATCH 3/3] font.eclass: Move while to primary shell Date: Sun, 24 Mar 2019 21:52:31 +0100 Message-ID: <2058431.cuIeolGEF7@tuxk10> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Archives-Salt: 20a732d9-00ce-4b2b-9551-6e65d0e14b72 X-Archives-Hash: d70a3075cfd64a1d74dd297d24a8ce76 --- eclass/font.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/font.eclass b/eclass/font.eclass index fef6b79..6488109 100644 --- a/eclass/font.eclass +++ b/eclass/font.eclass @@ -103,7 +103,7 @@ font_cleanup_dirs() { local d f g generated candidate otherfile ebegin "Cleaning up font directories" - find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0 | while read -d $'\0' d; do + while read d; do candidate=false otherfile=false for f in "${d}"/*; do @@ -138,7 +138,7 @@ font_cleanup_dirs() { # if there's nothing left remove the directory find "${d}" -maxdepth 0 -type d -empty -delete || eerror "failed to purge ${d}" fi - done + done < <(find -L "${EROOT%/}"/usr/share/fonts/ -type d -print0) eend 0 } -- 2.21.0