commit: 301e21e7bd2317be312e7f110dbdea51a315abee
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 13 12:01:54 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Jan 13 12:01:54 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=301e21e7
scripts/bootstrap-prefix: complete instructions for using newer bash
scripts/bootstrap-prefix.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 89210cea0c..5f6e4e2c95 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -9,8 +9,12 @@ einfo() { echo "* $*"; }
if [[ ! ${BASH_VERSION:-0} == 4.[23456789]* ]]; then
eerror "This script requires GNU bash 4.2 or newer to run."
- eerror "If you don't have one, please bootstrap bash 4.2 first:"
- eerror "https://wiki.gentoo.org/wiki/Project:Prefix/Bootstrap"
+ eerorr "You are using ${BASH} which is ${BASH_VERSION}"
+ eerror "If you don't have a newer one, please bootstrap bash 4.2 first:"
+ eerror " https://wiki.gentoo.org/wiki/Project:Prefix/Bootstrap"
+ eerror "You can prepend a better bash's location to your PATH, or call"
+ eerror "this script with the alternative bash like so:"
+ eerror " /path/to/bash-4.2 ${BASH_SOURCE[0]}"
exit 1
fi