echo "WARN: NB_LOOP=$NB_LOOP: BASH_SOURCE=$BASH_SOURCE \$0=$0 | Won't load !"
NB_LOOP=$(($NB_LOOP+1))
unset NB_LOOP
+ exit
return 2>/dev/null || exit # if executable
fi
nb_debug "ENVS: BASH_SOURCE=$BASH_SOURCE \$0=$0"
for i in \
${NB_ROOT}/etc/profile.d/envs \
${NB_ROOT}/etc/profile.d/aliases \
- $(nb_repos_ls "etc/profile" "etc/profile.d/*.sh" | awk '$0 != "'${NB_ROOT}/etc/profile'"') \
- ;do
+ $(nb_repos_ls "etc/profile" "etc/profile.d/*.sh" | awk '!/^\/etc\// && $0 != "'${NB_ROOT}/etc/profile'"') \
+ ; do
nb_debug ". $i"
[ -r "$i" -a -f "$i" ] && . "$i"
done