From 6cc66908abdb734cf0b7d60cdc015b80cb3a9a4f Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Mon, 18 Feb 2019 11:19:06 +0000 Subject: [PATCH] etc/profile --- etc/profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ... -- 2.47.3