app-shells/zsh: fix zprofile for Prefix

Closes: https://bugs.gentoo.org/677880
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
This commit is contained in:
Fabian Groffen
2019-02-14 09:37:30 +01:00
parent 94adff2612
commit 57668f2a99

View File

@@ -25,7 +25,7 @@ umask 022
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
# Check to make sure ROOTPATH is sane before we use it.
# https://bugs.gentoo.org/656400
if [[ :${ROOTPATH}: == *:@GENTOO_PORTAGE_EPREFIX@/usr/sbin:* ]]; then
if [[ :${ROOTPATH}: == *:/usr/sbin:* ]]; then
PATH="${ROOTPATH}"
fi
fi