From 47d507b3e3a6d81760db4b8c7a1ed2d4cd6d91a7 Mon Sep 17 00:00:00 2001 From: John Nunemaker Date: Sat, 6 Mar 2010 01:00:58 -0500 Subject: [PATCH] Using backticks instead of %x. --- lib/wand.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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