From d76f34bfa71c438efec0aadf37482dea6360968a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 9 Oct 2016 22:08:01 +0100 Subject: dgit: Get sense of failed clone failed cleanup error reporting check correct. Closes:#796773. Signed-off-by: Ian Jackson --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index b695905..7b16ff3 100755 --- a/dgit +++ b/dgit @@ -3381,7 +3381,7 @@ sub cmd_clone { } if (stat $dstdir) { rmtree($dstdir) or die "remove $dstdir: $!\n"; - } elsif (!grep { $! == $_ } + } elsif (grep { $! == $_ } (ENOENT, ENOTDIR, EACCES, EPERM, ELOOP)) { } else { print STDERR "check whether to remove $dstdir: $!\n"; -- cgit v1.2.3