]> git.nbdom.net Git - nb.git/commitdiff
clean code
authorNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 13 Sep 2016 13:07:31 +0000 (14:07 +0100)
committerNicolas Boisselier <nicolas.boisselier@semantico.com>
Tue, 13 Sep 2016 13:07:31 +0000 (14:07 +0100)
bin/nb-update

index 271aa4e222f39b2609af917c34b150695d67fa37..9adce95ba966300935f8d56c9ff85ba2b6ba65ef 100755 (executable)
@@ -5,23 +5,11 @@
 # Called by cron/etc/nb
 #
 #####################################################################
-#su nico -c "cd /opt/nb && git -C /opt/nb pull"
-#exit
 . "${BASH_SOURCE%/*}/../etc/profile" || exit
 declare -r NAME="$(basename "${0}")"
 declare -r TMP="/tmp/$NAME.tmp"
 declare CLEANUP=0
-[ "$1" = "-cleanup" ] && CLEANUP=1 
-
-#####################################################################
-# Git Connection check
-#
-#[ "$1" = "TEST" ] && url2nc nico@zaza.com:re.git && exit
-#[ "$1" = "TEST" ] && url2nc zaza.com:re.git && exit
-#[ "$1" = "TEST" ] && url2nc https://zaza.com/re.git && exit
-#cd $NB_ROOT || exit
-#git_conn_check || git_conn_check || exit
-#exec echo BYE
+[ "$1" = "-cleanup" ] && CLEANUP=1
 
 #####################################################################
 # Gits pull
@@ -33,7 +21,6 @@ export GIT_SSH="$TMP"
 
 for repo in $(nb-repo-dirs); do
 
-# NB 17.01.16   # Check dir
   [ -d "$repo/.git" ] || continue
   cd "$repo" || continue