From: Nicolas Boisselier Date: Tue, 2 Jan 2018 16:01:08 +0000 (+0000) Subject: etc/profile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=23a439d51cf3e8e6ef6db45422300008fd55203e;p=nb.git etc/profile --- diff --git a/bin/nb-commit b/bin/nb-commit deleted file mode 100755 index 29944487..00000000 --- a/bin/nb-commit +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env sh -##################################################################### -# -# Compile, update source code -# For DEV !!! -# -##################################################################### -set -e -. $(dirname "$0")/../etc/profile || exit 1; [ -z "$NB_ROOT" ] && exit - -cd $NB_ROOT || exit -share/db/update.sh | sed "s,^,share/db/update.sh: ," - -( - -for f in $(grep -rIEl '^\s*.{1,3}SHELL_REPLACE' .); do - case "$f" in *.bak) continue ;; esac - echo "shell_replace: Update $f" - shell_replace -i.bak "$f" -done - -for f in \ - www/*/update.sh \ -; do - [ -x "$f" ] || continue - $f | sed "s,^,$f: ," -done - -) | sed 's, \./,,' - -which docker 1> /dev/null && docker run --rm -v $NB_ROOT:$NB_ROOT alpine sh -c "(. $NB_ROOT/etc/profile && nb_repos) >/dev/null && echo Docker: OK" diff --git a/bin/nb-install b/bin/nb-install index b23d4d69..ac900b31 100755 --- a/bin/nb-install +++ b/bin/nb-install @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash ############################################################################## # # Install - NB 18.11.14 diff --git a/bin/nb-update b/bin/nb-update index 92bcbc68..1cf9aeb7 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash ##################################################################### # # Pull update and run install script diff --git a/etc/profile b/etc/profile index 8eb8e457..d2221e9e 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 alpine sh -c " . $NB_ROOT/etc/profile --debug && nb_repos && echo OK" +# docker run --rm -it -v $NB_ROOT:$NB_ROOT bash sh -c " . $NB_ROOT/etc/profile --debug && nb_repos && echo OK" # # Load order: # 1. etc/profile.d/function