diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-27 06:06:27 +0000 |
commit | 8d5dbd847cbc704a6a06405856e94b461011afe3 (patch) | |
tree | 4d26462d027b14926335894749d2e01d982234d0 /app-shells/zsh/files/zprofile-4 | |
parent | 5bb9ff1ee56d2b5e75e01a7f066d8b0cec84ec02 (diff) |
gentoo resync : 27.03.2021
Diffstat (limited to 'app-shells/zsh/files/zprofile-4')
-rw-r--r-- | app-shells/zsh/files/zprofile-4 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app-shells/zsh/files/zprofile-4 b/app-shells/zsh/files/zprofile-4 index 2e33b11f4915..b92c245784dd 100644 --- a/app-shells/zsh/files/zprofile-4 +++ b/app-shells/zsh/files/zprofile-4 @@ -2,7 +2,7 @@ # Load environment settings from profile.env, which is created by # env-update from the files in /etc/env.d -if [ -e /etc/profile.env ] ; then +if [[ -e /etc/profile.env ]] ; then . /etc/profile.env fi @@ -22,7 +22,7 @@ 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 @@ -35,7 +35,7 @@ unset ROOTPATH shopts=$- setopt nullglob for sh in /etc/profile.d/*.sh ; do - [ -r "$sh" ] && . "$sh" + [[ -r "${sh}" ]] && . "${sh}" done unsetopt nullglob set -$shopts |