From 2b14837ed6ac4f0169c27d0cc269d7a2ea900841 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 3 Nov 2016 02:53:15 +0000 Subject: [PATCH] bin/nb-repo-dirs always print NB_ROOT --- bin/nb-repo-dirs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/nb-repo-dirs b/bin/nb-repo-dirs index 672569e9..7d77af91 100755 --- a/bin/nb-repo-dirs +++ b/bin/nb-repo-dirs @@ -20,7 +20,6 @@ my $DEBUG = 0; ($ARGV[0]||'') =~ /^--?(all|debug)$/ and $DEBUG = 1 and shift @ARGV; my @DIRS = ( - $NB_ROOT, ); if (-r $CONF) { @@ -35,7 +34,10 @@ if (-r $CONF) { #print map {"$_\n"} add_args(@DIRS) and exit 0 if $DEBUG; my %h; -print + +print "$NB_ROOT\n"; $h{$NB_ROOT}++; + +@DIRS and print map {"$_\n"} grep {$_ ne "" and !$h{$_}++} map { -- 2.47.3