diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index 9710cf1ad4..bd5e511d4c 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -593,6 +593,8 @@ then fi else HOMEBREW_PRODUCT="${HOMEBREW_SYSTEM}brew" + # Don't try to follow /etc/os-release + # shellcheck disable=SC1091 [[ -n "${HOMEBREW_LINUX}" ]] && HOMEBREW_OS_VERSION="$(source /etc/os-release && echo "${PRETTY_NAME}")" : "${HOMEBREW_OS_VERSION:=$(uname -r)}" HOMEBREW_OS_USER_AGENT_VERSION="${HOMEBREW_OS_VERSION}"