]> git.nbdom.net Git - nb.git/commitdiff
bin/nb-repo-dirs always print NB_ROOT
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 3 Nov 2016 02:53:15 +0000 (02:53 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 3 Nov 2016 02:53:15 +0000 (02:53 +0000)
bin/nb-repo-dirs

index 672569e9d742ec8c6d38bc73bd15c9329546809c..7d77af9140fdfdecb9456dbd8ba7c545d27829ca 100755 (executable)
@@ -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 {