summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2022-02-12 19:49:23 +0100
committerLars Wendler <polynomial-c@gentoo.org>2022-02-12 19:50:42 +0100
commita26c773f643fcfe35288ddfc0321a7a7d51fda0c (patch)
tree830f0b301c916c1b3823962e6d56609a98a6e1f5 /app-shells/zsh/files/zprofile-4
parentwww-client/w3m: Maintainer dropped (diff)
downloadgentoo-a26c773f643fcfe35288ddfc0321a7a7d51fda0c.tar.gz
gentoo-a26c773f643fcfe35288ddfc0321a7a7d51fda0c.tar.bz2
gentoo-a26c773f643fcfe35288ddfc0321a7a7d51fda0c.zip
app-shells/zsh: Bump to version 5.8.1
Closes: https://bugs.gentoo.org/777333 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-shells/zsh/files/zprofile-4')
-rw-r--r--app-shells/zsh/files/zprofile-44
1 files changed, 2 insertions, 2 deletions
diff --git a/app-shells/zsh/files/zprofile-4 b/app-shells/zsh/files/zprofile-4
index b92c245784dd..9155aae3fc58 100644
--- a/app-shells/zsh/files/zprofile-4
+++ b/app-shells/zsh/files/zprofile-4
@@ -22,10 +22,10 @@ umask 022
# It is intentional in the following line to use || instead of -o.
# This way the evaluation can be short-circuited and calling whoami is
# avoided.
-if [[ "$EUID" = "0" ]] || [[ "$USER" = "root" ]] ; then
+if [[ "${EUID}" = "0" ]] || [[ "${USER}" = "root" ]] ; then
# Check to make sure ROOTPATH is sane before we use it.
# https://bugs.gentoo.org/656400
- if [[ :${ROOTPATH}: == *:/usr/sbin:* ]]; then
+ if [[ -n ${ROOTPATH} ]] && [[ :${ROOTPATH}: == *:/usr/sbin:* ]] ; then
PATH="${ROOTPATH}"
fi
fi