From 903c0368fcadbd92206285c2445eff424633ce45 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Sun, 17 Jan 2016 01:54:03 +0000 Subject: [PATCH] nb-update, nb-install, repos --- bin/nb-repo-dirs | 4 +--- bin/nb-update | 2 +- etc/profile.d/functions | 4 ++++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/nb-repo-dirs b/bin/nb-repo-dirs index 55d804c6..51a65e94 100755 --- a/bin/nb-repo-dirs +++ b/bin/nb-repo-dirs @@ -13,9 +13,6 @@ my @DIRS = ( '/opt/backup_servers', '/{opt,home/www}/rent', '/etc/puppet', - '/etc/zaza', - '/etc/puppet/data', - '/etc/puppet/modules', '/home/www/izideal', # '/opt/*/.nb-install', # '/home/*/.nb-install', @@ -39,6 +36,7 @@ print grep {$_ ne "" and !$h{$_}++} map { +# TODEL user - NB 17.01.16 my $user = (s/^(\w+:)// ? $1 : ""); my $dir = /\.nb-install$/ ? dirname($_) : $_; diff --git a/bin/nb-update b/bin/nb-update index 886c1c34..68ac294c 100755 --- a/bin/nb-update +++ b/bin/nb-update @@ -21,7 +21,7 @@ export GIT_SSH="$TMP" for repo in $(nb_repo_dirs); do - # Check dir +# NB 17.01.16 # Check dir [ -d "$repo/.git" ] || continue cd "$repo" || continue diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 531bdf90..a54346fd 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -319,6 +319,10 @@ jpg2avi() { } nb_repo_dirs() { + if [ -e $NB_ROOT/nb-repo-dirs ]; then + $NB_ROOT/nb-repo-dirs + return + fi ( ls -d \ $NB_ROOT \ -- 2.47.3