commit: f6fe42c17ba4a55ea5f13a3bb9c39cc85c790483 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jul 26 11:12:08 2018 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Aug 9 14:08:39 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6fe42c1
desktop.eclass: domenu, remove unnecessary nested loop eclass/desktop.eclass | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eclass/desktop.eclass b/eclass/desktop.eclass index 8f2c6d55c29..08899b4a460 100644 --- a/eclass/desktop.eclass +++ b/eclass/desktop.eclass @@ -244,15 +244,13 @@ domenu() { ( # wrap the env here so that the 'insinto' call # doesn't corrupt the env of the caller - local i j ret=0 + local i ret=0 insopts -m 0644 insinto /usr/share/applications for i in "$@" ; do if [[ -d ${i} ]] ; then - for j in "${i}"/*.desktop ; do - doins "${j}" - ((ret|=$?)) - done + doins "${i}"/*.desktop + ((ret|=$?)) else doins "${i}" ((ret|=$?))