From: Nicolas Boisselier Date: Mon, 18 Feb 2019 11:19:06 +0000 (+0000) Subject: etc/profile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=6cc66908abdb734cf0b7d60cdc015b80cb3a9a4f;p=nb.git etc/profile --- diff --git a/etc/profile b/etc/profile index bee6b4f3..632ec942 100755 --- a/etc/profile +++ b/etc/profile @@ -57,7 +57,8 @@ elif [ "$KSH_VERSION" != "" ]; then eval 'NB_ETC_DIR="$(dirname "${.sh.file}")"' elif [ -r /etc/profile.d/nb.sh ]; then - NB_ETC_DIR=$(dirname $(grep '\. ' -m1 /etc/profile.d/nb.sh | cut -d'.' -f2 /etc/profile.d/nb.sh)) +# NB 18.02.19 NB_ETC_DIR=$(dirname $(grep '\. ' -m1 /etc/profile.d/nb.sh | cut -d'.' -f2 /etc/profile.d/nb.sh)) + NB_ETC_DIR=$(dirname "$(awk -F'&& . ' '/ \. /{print $2;exit}' /etc/profile.d/nb.sh)") else # Alpine, busybox, ...