diff --git a/lib/wand.rb b/lib/wand.rb index 33bdfa9..30e349f 100644 --- a/lib/wand.rb +++ b/lib/wand.rb @@ -3,7 +3,7 @@ module Wand def self.wave(path) type = MIME::Types.type_for(path)[0].to_s - type = %x[#{executable} --mime --brief #{path}].split(';')[0] if type.nil? || type == '' + type = `#{executable} --mime --brief #{path}`.split(';')[0] if type.nil? || type == '' type = nil if type =~ /cannot\sopen/ type end