From: Nicolas Boisselier Date: Fri, 26 Aug 2016 10:28:30 +0000 (+0200) Subject: nb-repo-dirs X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=290942702db532d313f0c6a93effe580ab7739e5;p=nb.git nb-repo-dirs --- diff --git a/bin/nb-repo-dirs b/bin/nb-repo-dirs index c4c006da..a8f136d7 100755 --- a/bin/nb-repo-dirs +++ b/bin/nb-repo-dirs @@ -37,7 +37,7 @@ print map { # To reduce glob return, we permit to use file - my $dir = !-d $_ ? dirname($_) : $_; + my $dir = (-e $_ and !-d $_) ? dirname($_) : $_; if (-d "$dir/.git") { warn "DEBUG: MISSING: $dir/$FILE_EXISTS\n" if $DEBUG and !-r "$dir/$FILE_EXISTS";