From: Göktürk Yüksek Date: Sun, 22 Jan 2017 01:57:29 +0000 (-0500) Subject: sci-electronics/kicad: replace the for loop with the funky while loop X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88ce08fa905f73ab9341285396b8e6f0a054058c;p=gentoo.git sci-electronics/kicad: replace the for loop with the funky while loop Package-Manager: portage-2.3.0 --- diff --git a/sci-electronics/kicad/kicad-4.0.5.ebuild b/sci-electronics/kicad/kicad-4.0.5.ebuild index 2544592c2990..dfaae912cc91 100644 --- a/sci-electronics/kicad/kicad-4.0.5.ebuild +++ b/sci-electronics/kicad/kicad-4.0.5.ebuild @@ -77,9 +77,9 @@ src_prepare() { eapply "${FILESDIR}/${PN}-4.0.4-boost-context.patch" # remove all the non unix file endings - for f in $(find "${S}" -type f -name "*.desktop") ; do + while IFS="" read -d $'\0' -r f; do edos2unix "${f}" - done + done < <(find "${S}" -type f -name "*.desktop" -print0) # Remove cvpcb desktop file while it does nothing rm "${WORKDIR}/${P}/resources/linux/mime/applications/cvpcb.desktop" || die