diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2007-06-06 20:30:57 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2007-06-06 20:30:57 +0000 |
commit | 8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d (patch) | |
tree | ff3282b0631fac9485b2f0cc3b37a9a604cb3a41 | |
parent | 397d1d67402f70d1fd263ca765abf3460b6f36ea (diff) | |
download | mga-youri-core-8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d.tar mga-youri-core-8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d.tar.gz mga-youri-core-8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d.tar.bz2 mga-youri-core-8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d.tar.xz mga-youri-core-8d36f0331572d5eabd0d6d3fa5b7b4e6bfc19a4d.zip |
check find exit status; it must always work, can't really continue if it doesn't
-rw-r--r-- | lib/Youri/Repository.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |