Permalink
Browse files

OC-11083 MS C compiler plugin regression -- trailing return character…

… removal
  • Loading branch information...
1 parent 2e20e3b commit cf8e04acda04544d3c6f91c772140d358cc045c7 Adam Edwards committed Jan 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ohai/plugins/c.rb
View
@@ -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 cf8e04a

Please sign in to comment.