aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-24 19:30:23 -0300
committerEuAndreh <eu@euandre.org>2022-08-24 19:30:23 -0300
commit2306da1337af68689678f7a0858f68e9b2a83b8e (patch)
tree41942c182f65bad5987cf2847865b3b5c44c1789
parentbin/check: Call out command-specific tests (diff)
downloaddotfiles-2306da1337af68689678f7a0858f68e9b2a83b8e.tar.gz
dotfiles-2306da1337af68689678f7a0858f68e9b2a83b8e.tar.xz
etc/sh/rc: Use -r over -e test when sourcing files
-rw-r--r--etc/sh/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index afd7391..a08da74 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -19,7 +19,7 @@ mkdir -p \
"$XDG_LOG_HOME/euandreh"
GUIX_PROFILE="$XDG_CONFIG_HOME"/guix/current
-if [ -e "$GUIX_PROFILE"/etc/profile ]; then
+if [ -r "$GUIX_PROFILE"/etc/profile ]; then
. "$GUIX_PROFILE"/etc/profile
fi
@@ -261,7 +261,7 @@ case $- in
esac
F="$XDG_CONFIG_HOME"/sh/privrc.sh
-if [ -e "$F" ]; then
+if [ -r "$F" ]; then
# Extra rc code to be loaded, stored in private repository
. "$F"
fi