lib/linner/bundler.rb in linner-0.8.1 vs lib/linner/bundler.rb in linner-0.8.2
- old
+ new
@@ -76,9 +76,10 @@
FileUtils.rm_rf Dir.glob("#{dest}/*")
Archive.untar(path, dest)
end
def gzipped?(path)
- return true if "application/x-gzip" == IO.popen(["file", "--brief", "--mime-type", path], in: :close, err: :close).read.chomp
+ mime_type = IO.popen(["file", "--brief", "--mime-type", path], in: :close, err: :close).read.chomp
+ ["application/x-gzip", "application/gzip"].include? mime_type
end
end
end