make the pipe redirect working on ubuntu, debian, centos, fedora and openbsd

This commit is contained in:
mh 2008-09-30 19:51:49 +00:00
parent 37cb4d4a8f
commit fea257b753

View file

@ -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