From c5e62ac002a7f693f3955e3f9886058cbd6f4c53 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Wed, 16 Dec 2015 22:15:44 +0000 Subject: [PATCH] nb_repo_dirs --- etc/profile.d/functions | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index 3519e14b..5a993f9f 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -316,7 +316,16 @@ jpg2avi() { nb_repo_dirs() { ( - echo " + ls -d \ + $NB_ROOT \ + /opt/backup_servers \ + /{opt,home/www}/rent \ + root:/etc/puppet \ + /etc/puppet/data \ + /etc/puppet/modules \ + /home/www/izideal \ + 2>/dev/null + false && echo " $NB_ROOT /opt/backup_servers /{opt,home/www}/rent @@ -326,5 +335,5 @@ nb_repo_dirs() { /home/www/izideal " | xargs ls -d 2> /dev/null (ls /{opt,home,home/www}/*/.nb-install | xargs -n1 dirname) 2>/dev/null - ) | perl -ne '/^\s*$/ and next; s/^\s+//; print' + ) | perl -ne '/^\s*$/ and next; s/^\s+//; print unless $h{$_}++' } -- 2.47.3