From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-997342-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 3F082138330
	for <garchives@archives.gentoo.org>; Sat, 13 Jan 2018 12:02:07 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6284FE099C;
	Sat, 13 Jan 2018 12:02:05 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3D371E0A9B
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Jan 2018 12:02:04 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 79FBC335C48
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Jan 2018 12:02:03 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 994BC186
	for <gentoo-commits@lists.gentoo.org>; Sat, 13 Jan 2018 12:02:01 +0000 (UTC)
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" <grobian@gentoo.org>
Message-ID: <1515844914.301e21e7bd2317be312e7f110dbdea51a315abee.grobian@gentoo>
Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/
X-VCS-Repository: repo/proj/prefix
X-VCS-Files: scripts/bootstrap-prefix.sh
X-VCS-Directories: scripts/
X-VCS-Committer: grobian
X-VCS-Committer-Name: Fabian Groffen
X-VCS-Revision: 301e21e7bd2317be312e7f110dbdea51a315abee
X-VCS-Branch: master
Date: Sat, 13 Jan 2018 12:02:01 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 4028449c-5d58-4a0a-b1a7-d6ba9aca555b
X-Archives-Hash: 244586d2132a3e69340b4ac20af5214b

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