From 147cfa46e44b376c39ddf75cc759bf287fb8a812 Mon Sep 17 00:00:00 2001 From: xycabcd <145047708+xycabcd@users.noreply.github.com> Date: Thu, 29 Aug 2024 14:45:27 -0400 Subject: [PATCH] Deleted the duplicated "PWD check" --- Library/Homebrew/brew.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh index cd9026d5f1..136da511f9 100644 --- a/Library/Homebrew/brew.sh +++ b/Library/Homebrew/brew.sh @@ -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). #####