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 A0B97138335 for ; Wed, 15 Aug 2018 07:31:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC4EDE091B; Wed, 15 Aug 2018 07:31:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 AD64DE091B for ; Wed, 15 Aug 2018 07:31:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BB98335CDB for ; Wed, 15 Aug 2018 07:31:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0CCCF3A9 for ; Wed, 15 Aug 2018 07:31:07 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1534318254.6c2295218964f510076621e41b0469beaefd32ba.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/openrc/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/openrc/openrc-0.34.11.ebuild X-VCS-Directories: sys-apps/openrc/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6c2295218964f510076621e41b0469beaefd32ba X-VCS-Branch: master Date: Wed, 15 Aug 2018 07:31:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f44351e8-5faa-4dae-a9f0-4e66d801e7b5 X-Archives-Hash: 91fed3550a580d4315df17683049d2de commit: 6c2295218964f510076621e41b0469beaefd32ba Author: Michał Górny gentoo org> AuthorDate: Thu Aug 9 14:16:07 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Aug 15 07:30:54 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c229521 sys-apps/openrc: Replace path_exists with inline bash test path_exists was really meant to be used with wildcards (i.e. when plain bash tests can't work easily). Here it is really unnecessary. sys-apps/openrc/openrc-0.34.11.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-apps/openrc/openrc-0.34.11.ebuild b/sys-apps/openrc/openrc-0.34.11.ebuild index 4e2ed59e45f..7fd281798c1 100644 --- a/sys-apps/openrc/openrc-0.34.11.ebuild +++ b/sys-apps/openrc/openrc-0.34.11.ebuild @@ -289,7 +289,7 @@ pkg_postinst() { fi # Handle the conf.d/local.{start,stop} -> local.d transition - if path_exists -o "${EROOT}"etc/conf.d/local.{start,stop} ; then + if [[ -f ${EROOT}etc/conf.d/local.start || -f ${EROOT}etc/conf.d/local.stop ]] ; then elog "Moving your ${EROOT}etc/conf.d/local.{start,stop}" elog "files to ${EROOT}etc/local.d" mv "${EROOT}"etc/conf.d/local.start "${EROOT}"etc/local.d/baselayout1.start