Skip to content

Commit

Permalink
Merge pull request #98948 from BenTheElder/hint-mac
Browse files Browse the repository at this point in the history
suggest homebrew when bash is too old on macOS
  • Loading branch information
k8s-ci-robot committed Feb 10, 2021
2 parents d08ac1d + 7f1c674 commit 940f6ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hack/lib/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,9 @@ function kube::util::ensure-bash-version {
# shellcheck disable=SC2004
if ((${BASH_VERSINFO[0]}<4)) || ( ((${BASH_VERSINFO[0]}==4)) && ((${BASH_VERSINFO[1]}<2)) ); then
echo "ERROR: This script requires a minimum bash version of 4.2, but got version of ${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}"
if [ "$(uname)" = 'Darwin' ]; then
echo "On macOS with homebrew 'brew install bash' is sufficient."
fi
exit 1
fi
}
Expand Down

0 comments on commit 940f6ca

Please sign in to comment.