summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-03-20 10:18:24 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-03-21 17:11:04 +0100
commitbe45bf5a5b1177231b1e1068ef02cff51c6257a1 (patch)
tree8f59e774caa3a4bb30aeea4512b1e3b934f5a1d5
parentnet-vpn/tor: add new alpha 0.4.6.1-alpha (diff)
downloadgentoo-be45bf5a5b1177231b1e1068ef02cff51c6257a1.tar.gz
gentoo-be45bf5a5b1177231b1e1068ef02cff51c6257a1.tar.bz2
gentoo-be45bf5a5b1177231b1e1068ef02cff51c6257a1.zip
app-shells/zsh: Minor improvements in zprofile
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
-rw-r--r--app-shells/zsh/files/zprofile-46
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