From: Jan 'jast' Krueger <usenet / ruby-co.de>
Subject: Re: [ANN] apt-sary-0.1
Date: Thu, 29 Dec 2005 07:22:53 +0900

Hi, 

> head -100  | egrep -B100 '^FILE +LOCATION' > header.txt
> rake aborted!
> Command failed with status (): [head -100  | egrep -B100 '^FILE +LOCATION'...]

Please try this patch.

--- apt-sary.rb	(revision 1075)
+++ apt-sary.rb	(working copy)
@@ -29,7 +29,7 @@
 
 task :contents_header do
   cat = FileList["*Contents*.cat"][0]
-  sh "head -100 #{cat} | egrep -B100 '^FILE +LOCATION' > header.txt"
+  sh "head -100 #{cat} | egrep -B100 '^FILE +LOCATION' > header.txt" if cat
 end
 
 task :contents => [$contents, :contents_header].flatten

--
rubikitch
http://www.rubyist.net/~rubikitch/