Merge pull request #18197 from xycabcd/patch-2

This commit is contained in:
Mike McQuaid 2024-08-30 07:58:56 +01:00 committed by GitHub
commit 85c9c17ddf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,17 +369,6 @@ then
odie "Cowardly refusing to continue at this prefix: ${HOMEBREW_PREFIX}"
fi
# Many Pathname operations use getwd when they shouldn't, and then throw
# odd exceptions. Reduce our support burden by showing a user-friendly error.
if ! [[ -d "${PWD}" ]]
then
odie "The current working directory must exist to run brew."
fi
if ! [[ -r "${PWD}" ]]
then
odie "The current working directory must be readable to ${USER} to run brew."
fi
#####
##### Now, do everything else (that may be a bit slower).
#####