From 8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d Mon Sep 17 00:00:00 2001 From: Gustavo De Nardin Date: Wed, 6 Jun 2007 20:30:57 +0000 Subject: check find exit status; it must always work, can't really continue if it doesn't --- lib/Youri/Repository.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Youri/Repository.pm b/lib/Youri/Repository.pm index 2434cb4..cc02bbc 100644 --- a/lib/Youri/Repository.pm +++ b/lib/Youri/Repository.pm @@ -306,6 +306,7 @@ sub get_files { my $grep = ""; $grep = "-regextype posix-egrep -regex '.*\/$pattern'" if ($pattern); my @files = map { chop; $_; } `find -L $root/$path $grep -type f`; + die "FATAL: get_files(): find failed!" if ($?); return @files; } -- cgit v1.2.1