brew.sh: tweak lsb_release parameters.

Fixes #12642
This commit is contained in:
Mike McQuaid 2021-12-29 13:06:53 +00:00
parent 435e22d183
commit 3f46654592
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -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}"