make the pipe redirect working on ubuntu, debian, centos, fedora and openbsd
This commit is contained in:
parent
37cb4d4a8f
commit
fea257b753
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue