Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@adamedx adamedx authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/ohai/plugins/c.rb
View
2  lib/ohai/plugins/c.rb
@@ -62,7 +62,7 @@
begin
so = shell_out("cl /?")
if so.exitstatus == 0
- description = so.stderr.split($/).first
+ description = so.stderr.lines.first.chomp
if description =~ /Compiler Version ([\d\.]+)/
c[:cl] = Mash.new
c[:cl][:version] = $1

0 comments on commit 83fb5aa

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