aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-04-26 16:18:48 +0100
committerMike McQuaid2017-04-26 16:18:48 +0100
commitf02d7b93a79ccc71e1314f743e6cab19dff2b439 (patch)
treea34ad4e41d61a87864be27afbfade2c459700632 /Library
parentc6c930174eeff9d863d068acbe3ccaa8fe520bb6 (diff)
downloadbrew-f02d7b93a79ccc71e1314f743e6cab19dff2b439.tar.bz2
brew.sh: use OS X in user agent rather than macOS.
This matches what Safari does on macOS 10.12 and is generally what tools like Google Analytics expect the format to be.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index 11c1a6c59..dd2c96f3f 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -100,7 +100,8 @@ then
# This is i386 even on x86_64 machines
[[ "$HOMEBREW_PROCESSOR" = "i386" ]] && HOMEBREW_PROCESSOR="Intel"
HOMEBREW_MACOS_VERSION="$(/usr/bin/sw_vers -productVersion)"
- HOMEBREW_OS_VERSION="macOS $HOMEBREW_MACOS_VERSION"
+ # Don't change this from OS X to match what macOS itself does
+ HOMEBREW_OS_VERSION="OS X $HOMEBREW_MACOS_VERSION"
printf -v HOMEBREW_MACOS_VERSION_NUMERIC "%02d%02d%02d" ${HOMEBREW_MACOS_VERSION//./ }
if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100900" &&