mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Deleted the duplicated "PWD check"
This commit is contained in:
parent
638a3dc3a3
commit
147cfa46e4
@ -369,17 +369,6 @@ then
|
|||||||
odie "Cowardly refusing to continue at this prefix: ${HOMEBREW_PREFIX}"
|
odie "Cowardly refusing to continue at this prefix: ${HOMEBREW_PREFIX}"
|
||||||
fi
|
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).
|
##### Now, do everything else (that may be a bit slower).
|
||||||
#####
|
#####
|
||||||
|
Loading…
x
Reference in New Issue
Block a user