From: Nicolas Boisselier Date: Wed, 6 Dec 2017 02:45:56 +0000 (+0000) Subject: etc/profile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=51c067a4621ff5349dc77ee05e872501cc0717fd;p=nb.git etc/profile --- diff --git a/etc/profile b/etc/profile index 2f5a7d28..03ab2827 100755 --- a/etc/profile +++ b/etc/profile @@ -2,7 +2,7 @@ # # etc/profile # -# To test: +# To test with busybox: # docker run --rm -it -v $NB_ROOT:$NB_ROOT alpine sh -c " . $NB_ROOT/etc/profile --debug && nb_repos && echo OK" # # Load order: @@ -70,7 +70,7 @@ else fi -nb_unset() { +_nb_unset() { unset i tmp NB_ETC_DIR NB_DEBUG NB_LOOP return 0 } @@ -88,7 +88,7 @@ else [ -n "$NB_DEBUG" ] && $NB_DEBUG ". $NB_ETC_DIR/profile.d/functions" if [ ! -e "$NB_ETC_DIR/profile.d/functions" ] || ! . "$NB_ETC_DIR/profile.d/functions"; then echo "ERR: $NB_ETC_DIR: Wrong directory (no profile.d/functions)" 1>&2 - nb_unset + _nb_unset return 1 fi @@ -115,8 +115,8 @@ else fi -#export NB_LASTTIME=$(date +"%Y-%M-%d %T") -nb_unset -unset -f nb_unset 2> /dev/null +#export NB_LAST_LOAD_TIME=$(date +"%Y-%M-%d %T") +_nb_unset +unset -f _nb_unset 2> /dev/null return 0