]> git.nbdom.net Git - nb.git/commitdiff
etc/profile
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 17 Feb 2019 21:20:21 +0000 (21:20 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Sun, 17 Feb 2019 21:20:21 +0000 (21:20 +0000)
etc/profile

index 07a13e4495cfb4b13e85728574dfcfd0993ae1ac..2f8cddeec47301ce396f5a88806f008a9dd13eff 100755 (executable)
@@ -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