Skip to content

Commit c42ee37

Browse files
authored
Merge pull request #1001 from gromgit/delay-messaging
2 parents 228188f + 943969f commit c42ee37

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

install.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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

10381043
ohai "Installation successful!"

0 commit comments

Comments
 (0)