commit: 6c2295218964f510076621e41b0469beaefd32ba
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 9 14:16:07 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> 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