Skip to content

Commit bce07c5

Browse files
authored
Merge pull request #1025 from Homebrew/mkdir-homebrew-cache-without-sudo
2 parents d840110 + dd28cd8 commit bce07c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

install.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -829,12 +829,7 @@ execute_sudo "${CHOWN[@]}" "-R" "${USER}:${GROUP}" "${HOMEBREW_REPOSITORY}"
829829

830830
if ! [[ -d "${HOMEBREW_CACHE}" ]]
831831
then
832-
if [[ -n "${HOMEBREW_ON_MACOS-}" ]]
833-
then
834-
execute_sudo "${MKDIR[@]}" "${HOMEBREW_CACHE}"
835-
else
836-
execute "${MKDIR[@]}" "${HOMEBREW_CACHE}"
837-
fi
832+
execute "${MKDIR[@]}" "${HOMEBREW_CACHE}"
838833
fi
839834
if exists_but_not_writable "${HOMEBREW_CACHE}"
840835
then

0 commit comments

Comments
 (0)