summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-09-30 19:51:49 +0000
committermh <mh@immerda.ch>2008-09-30 19:51:49 +0000
commitfea257b75321eb82722af149bbb0a77d771f2290 (patch)
tree86483743f41659f7f97471580ce39c5752810914
parent37cb4d4a8f77ca9afec0fa0fef6092cce9191184 (diff)
make the pipe redirect working on ubuntu, debian, centos, fedora and openbsd
-rw-r--r--plugins/facter/mysql.rb2
1 files changed, 1 insertions, 1 deletions
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