diff options
author | Caleb Tennis <caleb.tennis@gmail.com> | 2010-10-22 08:43:06 -0400 |
---|---|---|
committer | Caleb Tennis <caleb.tennis@gmail.com> | 2010-10-22 08:52:46 -0400 |
commit | 6d3038efbcd9a549d27d0919645ccbbb661c443a (patch) | |
tree | 74e17aa6d13b3705dbb535e02882e3e7919f8577 /lib | |
parent | 61b467841325f8a45052d8031eafd0ab9f16bf23 (diff) | |
download | ohai-6d3038efbcd9a549d27d0919645ccbbb661c443a.tar.gz |
[OHAI-224] Don't pick up sun C compiler on non-sun systems
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ohai/plugins/c.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/c.rb b/lib/ohai/plugins/c.rb index 96728bfe..10477022 100644 --- a/lib/ohai/plugins/c.rb +++ b/lib/ohai/plugins/c.rb @@ -85,7 +85,7 @@ end status, stdout, stderr = run_command(:no_status_check => true, :command => "cc -V -flags") if status == 0 output = stderr.split - if output.size >= 4 + if stderr !~ /^cc: error/ && output.size >= 4 c[:sunpro] = Mash.new c[:sunpro][:version] = output[3] c[:sunpro][:description] = stderr.chomp |