From b8ec7d40166a745be927c623139baba5fb1e9b5d Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 13 Sep 2016 14:07:31 +0100 Subject: [PATCH] clean code --- bin/nb-update | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/bin/nb-update b/bin/nb-update index 271aa4e2..9adce95b 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -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 -- 2.47.3