Skip to content
This repository
Browse code

Merge pull request #282 from opscode/adamed-ms-c-fix

OC-11083 MS C compiler plugin regression -- trailing return character removal
  • Loading branch information...
commit 83fb5aa09243bb599c86fd9940c39a6c77e8804a 2 parents 2e20e3b + cf8e04a
Adam Edwards adamedx authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/ohai/plugins/c.rb
2  lib/ohai/plugins/c.rb
@@ -62,7 +62,7 @@
62 62 begin
63 63 so = shell_out("cl /?")
64 64 if so.exitstatus == 0
65   - description = so.stderr.split($/).first
  65 + description = so.stderr.lines.first.chomp
66 66 if description =~ /Compiler Version ([\d\.]+)/
67 67 c[:cl] = Mash.new
68 68 c[:cl][:version] = $1

0 comments on commit 83fb5aa

Please sign in to comment.
Something went wrong with that request. Please try again.