diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 09c7fd78b2..7d47ab4333 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -485,7 +485,7 @@ then fi else HOMEBREW_PRODUCT="${HOMEBREW_SYSTEM}brew" - [[ -n "${HOMEBREW_LINUX}" ]] && HOMEBREW_OS_VERSION="$(lsb_release -sd 2>/dev/null)" + [[ -n "${HOMEBREW_LINUX}" ]] && HOMEBREW_OS_VERSION="$(lsb_release -s -d 2>/dev/null)" : "${HOMEBREW_OS_VERSION:=$(uname -r)}" HOMEBREW_OS_USER_AGENT_VERSION="${HOMEBREW_OS_VERSION}"