Skip to content

Commit

Permalink
Fix gzcat/zcat test
Browse files Browse the repository at this point in the history
  • Loading branch information
incase committed Dec 19, 2011
1 parent 0ff2194 commit 77c8718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/clarity/commands/grep_command_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def exec_functions


def gzip_tools
cat_tool = (ENV["PATH"].split(":").find{|d| File.exists?(File.join(d, "gzcat"))} ? "zcat" : "gzcat")
cat_tool = (ENV["PATH"].split(":").find{|d| File.exists?(File.join(d, "zcat"))} ? "zcat" : "gzcat")
terms.empty? ? ["#{cat_tool} filename"] : ['zgrep options -e term filename'] + ['grep options -e term'] * (terms.size-1)
end

Expand Down

0 comments on commit 77c8718

Please sign in to comment.