brew: clarify which user needs to be able to read the working directory.

Otherwise, in multi-user environments, it can be ambiguous.
This commit is contained in:
Mike McQuaid 2024-01-11 12:24:04 +00:00
parent 3e537a25f2
commit f404aafe56
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ then
fi
if ! [[ -r "$(pwd)" ]]
then
odie "The current working directory must be readable to run brew."
odie "The current working directory must be readable to ${USER} to run brew."
fi
#####

View File

@ -25,7 +25,7 @@ then
fi
if ! [[ -r "${PWD}" ]]
then
echo "Error: The current working directory must be readable to run brew." >&2
echo "Error: The current working directory must be readable to ${USER} to run brew." >&2
exit 1
fi