From: Nicolas Boisselier Date: Sun, 17 Feb 2019 21:20:21 +0000 (+0000) Subject: etc/profile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=45dcd0b8f9ba5095343d40a091146064b86ea1d9;p=nb.git etc/profile --- diff --git a/etc/profile b/etc/profile index 07a13e44..2f8cddee 100755 --- a/etc/profile +++ b/etc/profile @@ -3,7 +3,7 @@ # etc/profile # # To test with busybox: -# docker run --rm -it -v $NB_ROOT:$NB_ROOT bash sh -c " . $NB_ROOT/etc/profile --debug && nb_repos && echo OK" +# docker run --rm -it -v $NB_ROOT:$NB_ROOT bash bash -c " . $NB_ROOT/etc/profile --debug && nb_repos && echo OK" # # Load order: # 1. etc/profile.d/function @@ -66,7 +66,7 @@ else for i in /*/*/etc/profile.d/nb.sh /*/*/*/etc/profile.d/nb.sh; do cd "$(dirname "$i")"/.. 1>/dev/null 2>&1 || continue - _nb_file_has_tag ../profile || continue + [ -e profile ] && _nb_file_has_tag profile || continue NB_ETC_DIR=$PWD #|| unset NB_ETC_DIR break