# 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
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