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..."
1027
1027
execute_sudo " ${CHMOD[@]} " " a+r" /etc/paths.d/homebrew
1028
1028
elif [[ " :${PATH} :" != * " :${HOMEBREW_PREFIX} /bin:" * ]]
1029
1029
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
1033
1031
fi
1034
1032
1035
1033
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
1036
1041
) || exit 1
1037
1042
1038
1043
ohai " Installation successful!"
You can’t perform that action at this time.
0 commit comments