]> git.nbdom.net Git - nb.git/commitdiff
etc/profile
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 16:01:08 +0000 (16:01 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 2 Jan 2018 16:01:08 +0000 (16:01 +0000)
bin/nb-commit [deleted file]
bin/nb-install
bin/nb-update
etc/profile

diff --git a/bin/nb-commit b/bin/nb-commit
deleted file mode 100755 (executable)
index 2994448..0000000
+++ /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"
index b23d4d69166c1fc757dd2d8334c6f85c932e63fb..ac900b3198d2bfa8b21248134295fd913f4b708d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
 ##############################################################################
 #
 # Install - NB 18.11.14
index 92bcbc683af11cdf03a2bfa10a44f83a7240a1fb..1cf9aeb770a1ec5aa8f402149683b5899d595555 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
 #####################################################################
 #
 # Pull update and run install script
index 8eb8e457e9b744f13652d7d1842a508a3754d9b0..d2221e9e2c10a19a37490a4d31a4d6e92311c5aa 100755 (executable)
@@ -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