From 290942702db532d313f0c6a93effe580ab7739e5 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 26 Aug 2016 12:28:30 +0200 Subject: [PATCH] nb-repo-dirs --- bin/nb-repo-dirs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.47.3