From 12dd6073a7c06d18a94b52003fffa1c6c39bd83b Mon Sep 17 00:00:00 2001 From: Kevin Rohrbaugh Date: Wed, 5 Jan 2011 13:02:49 -0500 Subject: [PATCH] Use ruby 1.8-compatible call syntax for Kernel#system (issue #17) --- lib/qwandry/configuration.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/qwandry/configuration.rb b/lib/qwandry/configuration.rb index b529b34..cc0af21 100644 --- a/lib/qwandry/configuration.rb +++ b/lib/qwandry/configuration.rb @@ -23,7 +23,7 @@ module Qwandry # Returns true if binary `name` is present. def present? name - system("which #{name}", STDOUT=>"/dev/null") + system("which #{name} > /dev/null") end # Sets the default configuration to launch, if no `configurations` are passed @@ -144,4 +144,4 @@ module Qwandry end end -end \ No newline at end of file +end