From 37cb4d4a8f77ca9afec0fa0fef6092cce9191184 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 29 Sep 2008 22:14:04 +0000 Subject: fixed it to be usable as well on openbsd --- plugins/facter/mysql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/facter') diff --git a/plugins/facter/mysql.rb b/plugins/facter/mysql.rb index 8982fd3..7e40324 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" ($?.exitstatus == 0).to_s end end -- cgit v1.2.3