From deb83c0967d52b758b5ddd90c390aafa324636f8 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 19 Sep 2020 17:08:43 -0500 Subject: [PATCH] Don't source /etc/profile & $HOME/.profile if nonexistant in xinit --- scripts/core/sxmo_xinit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/core/sxmo_xinit.sh b/scripts/core/sxmo_xinit.sh index 2056595..1baec47 100755 --- a/scripts/core/sxmo_xinit.sh +++ b/scripts/core/sxmo_xinit.sh @@ -2,8 +2,8 @@ envvars() { # shellcheck disable=SC1091 - . /etc/profile - . ~/.profile + [ -f /etc/profile ] && . /etc/profile + [ -f "$HOME"/.profile ] && . "$HOME"/.profile command -v "$TERM" || export TERM=st command -v "$BROWSER" || export BROWSER=surf command -v "$EDITOR" || export EDITOR=vis