diff options
author | mh <mh@immerda.ch> | 2008-09-30 19:51:49 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-09-30 19:51:49 +0000 |
commit | fea257b75321eb82722af149bbb0a77d771f2290 (patch) | |
tree | 86483743f41659f7f97471580ce39c5752810914 /plugins/facter | |
parent | 37cb4d4a8f77ca9afec0fa0fef6092cce9191184 (diff) |
make the pipe redirect working on ubuntu, debian, centos, fedora and openbsd
Diffstat (limited to 'plugins/facter')
-rw-r--r-- | plugins/facter/mysql.rb | 2 |
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 |