From fea257b75321eb82722af149bbb0a77d771f2290 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 30 Sep 2008 19:51:49 +0000 Subject: make the pipe redirect working on ubuntu, debian, centos, fedora and openbsd --- plugins/facter/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/facter/mysql.rb b/plugins/facter/mysql.rb index 7e40324..b8164bb 100644 --- a/plugins/facter/mysql.rb +++ b/plugins/facter/mysql.rb @@ -2,7 +2,7 @@ Facter.add("mysql_exists") do ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin" setcode do - mysqlexists = system "which mysql > /dev/null" + mysqlexists = system "which mysql > /dev/null 2>&1" ($?.exitstatus == 0).to_s end end -- cgit v1.2.3