File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -1019,22 +1019,22 @@ ohai "Downloading and installing Homebrew..."
1019
1019
) || exit 1
1020
1020
fi
1021
1021
1022
+ if [[ -n " ${ADD_PATHS_D-} " ]]
1023
+ then
1024
+ execute_sudo " ${MKDIR[@]} " /etc/paths.d
1025
+ echo " ${HOMEBREW_PREFIX} /bin" | execute_sudo tee /etc/paths.d/homebrew
1026
+ execute_sudo " ${CHOWN[@]} " root:wheel /etc/paths.d/homebrew
1027
+ execute_sudo " ${CHMOD[@]} " " a+r" /etc/paths.d/homebrew
1028
+ elif [[ " :${PATH} :" != * " :${HOMEBREW_PREFIX} /bin:" * ]]
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."
1033
+ fi
1034
+
1022
1035
execute " ${HOMEBREW_PREFIX} /bin/brew" " update" " --force" " --quiet"
1023
1036
) || exit 1
1024
1037
1025
- if [[ -n " ${ADD_PATHS_D-} " ]]
1026
- then
1027
- execute_sudo " ${MKDIR[@]} " /etc/paths.d
1028
- echo " ${HOMEBREW_PREFIX} /bin" | execute_sudo tee /etc/paths.d/homebrew
1029
- execute_sudo " ${CHOWN[@]} " root:wheel /etc/paths.d/homebrew
1030
- execute_sudo " ${CHMOD[@]} " " a+r" /etc/paths.d/homebrew
1031
- elif [[ " :${PATH} :" != * " :${HOMEBREW_PREFIX} /bin:" * ]]
1032
- then
1033
- warn " ${HOMEBREW_PREFIX} /bin is not in your PATH.
1034
- Instructions on how to configure your shell for Homebrew
1035
- can be found in the 'Next steps' section below."
1036
- fi
1037
-
1038
1038
ohai " Installation successful!"
1039
1039
echo
1040
1040
You can’t perform that action at this time.
0 commit comments