improve message to macOS users with a too old bash version

This commit is contained in:
Landon Curt Noll committed 2024-03-17 12:48:10 -07:00
1 parent 0773e2f31e
commit 4632b9d086
26 files changed
+78 -78

No files matched your search

+3 -3
View File
@@ -65,9 +65,9 @@ if [[ -z ${BASH_VERSINFO[0]} ||
${BASH_VERSINFO[0]} -eq 5 && ${BASH_VERSINFO[1]} -eq 1 && ${BASH_VERSINFO[1]} -lt 8 ]]; then
echo "$0: ERROR: bash version needs to be >= 5.1.8: $BASH_VERSION" 1>&2
echo "$0: Warning: bash version >= 4.2 might work but 5.1.8 was the minimum we tested" 1>&2
echo "$0: Notice: For macOS users, install homebrew (see https://brew.sh)," \
"then install homebrew bash (usually in /opt/homebrew/bin/bash)," \
"and then arrange \$PATH so that /opt/homebrew/bin is ahead of /bin" 1>&2
echo "$0: Notice: For macOS users: install homebrew (see https://brew.sh)," \
"then install homebrew bash, and then modify your \$PATH so that \"#!/usr/bin/env bash\"" \
"finds the homebrew installed (usually /opt/homebrew/bin/bash) version of bash" 1>&2
exit 4
fi