aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorMike McQuaid2016-04-04 11:46:33 +0100
committerMike McQuaid2016-04-04 12:18:21 +0100
commit77611bafb1dfc68e9cd59fb21163aefa53fccf2c (patch)
treef7be38a5ad3143451608a27bb52cc26d177ff24e /Library/Homebrew/os
parentac8088304603a95e2ae4d187016a50c36c622605 (diff)
downloadbrew-77611bafb1dfc68e9cd59fb21163aefa53fccf2c.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb2
1 files changed, 1 insertions, 1 deletions
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?