summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-09 16:16:07 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-15 09:30:54 +0200
commit6c2295218964f510076621e41b0469beaefd32ba (patch)
tree8ef00f312990331985fb4dc62c399425a2012abe
parentnet-vpn/openvpn: Remove obsolete postinst warning about old paths (diff)
downloadgentoo-6c2295218964f510076621e41b0469beaefd32ba.tar.gz
gentoo-6c2295218964f510076621e41b0469beaefd32ba.tar.bz2
gentoo-6c2295218964f510076621e41b0469beaefd32ba.zip
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.
-rw-r--r--sys-apps/openrc/openrc-0.34.11.ebuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-apps/openrc/openrc-0.34.11.ebuild b/sys-apps/openrc/openrc-0.34.11.ebuild
index 4e2ed59e45f4..7fd281798c14 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