X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=code_ruby%2Flib%2Fmaasha%2Ffilesys.rb;h=02a8a842f1157a9824052c589795c1630580ff90;hb=HEAD;hp=ff5c4eff0f538ba7a7201179121f063c2bdb5124;hpb=8224b617aee82379d5bbbcb8285d28814aea32bd;p=biopieces.git diff --git a/code_ruby/lib/maasha/filesys.rb b/code_ruby/lib/maasha/filesys.rb index ff5c4ef..02a8a84 100644 --- a/code_ruby/lib/maasha/filesys.rb +++ b/code_ruby/lib/maasha/filesys.rb @@ -58,9 +58,8 @@ class Filesys if file == '-' ios = STDIN else - case `file -L #{file}` + case `file -Lk #{file}` when /gzip/ - puts "GZIP" ios = IO.popen("gzip -cd #{file}", :external_encoding=>"EUC-JP") when /bzip/ ios = IO.popen("bzcat #{file}")