File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,12 +1027,17 @@ ohai "Downloading and installing Homebrew..."
10271027 execute_sudo " ${CHMOD[@]} " " a+r" /etc/paths.d/homebrew
10281028 elif [[ " :${PATH} :" != * " :${HOMEBREW_PREFIX} /bin:" * ]]
10291029 then
1030- warn " ${HOMEBREW_PREFIX} /bin is not in your PATH.
1031- Instructions on how to configure your shell for Homebrew
1032- can be found in the 'Next steps' section below."
1030+ PATH_WARN=1
10331031 fi
10341032
10351033 execute " ${HOMEBREW_PREFIX} /bin/brew" " update" " --force" " --quiet"
1034+
1035+ if [[ -n " ${PATH_WARN-} " ]]
1036+ then
1037+ warn " ${HOMEBREW_PREFIX} /bin is not in your PATH.
1038+ Instructions on how to configure your shell for Homebrew
1039+ can be found in the 'Next steps' section below."
1040+ fi
10361041) || exit 1
10371042
10381043ohai " Installation successful!"
You can’t perform that action at this time.
0 commit comments