From 2306da1337af68689678f7a0858f68e9b2a83b8e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 24 Aug 2022 19:30:23 -0300 Subject: etc/sh/rc: Use -r over -e test when sourcing files --- etc/sh/rc | 4 ++-- 1 file 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 -- cgit v1.2.3