]> git.nbdom.net Git - nb.git/commitdiff
etc/profile
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 11:19:06 +0000 (11:19 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 18 Feb 2019 11:19:06 +0000 (11:19 +0000)
etc/profile

index bee6b4f3ff41355080dd74c80762937da71cc979..632ec942348e9f7cdd901cd953e3e19b39f580e3 100755 (executable)
@@ -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, ...