From 77611bafb1dfc68e9cd59fb21163aefa53fccf2c Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 4 Apr 2016 11:46:33 +0100 Subject: Make Homebrew user agent consistent, use a slash. Generally it seems user agents are all `software/version` but ours is not. Also, set the user agent in a way that it's shared between Bash and Ruby code. Closes https://github.com/Homebrew/legacy-homebrew/pull/50480. --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/os') diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index af27911eb..fcaaf2723 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -21,7 +21,7 @@ module OS # This can be compared to numerics, strings, or symbols # using the standard Ruby Comparable methods. def full_version - @full_version ||= Version.new(`/usr/bin/sw_vers -productVersion`.chomp) + @full_version ||= Version.new(ENV["HOMEBREW_OSX_VERSION"].chomp) end def prerelease? -- cgit v1.2.3