From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D8379158041 for ; Thu, 28 Mar 2024 16:12:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFFD3E29AA; Thu, 28 Mar 2024 16:12:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6298E29AA for ; Thu, 28 Mar 2024 16:12:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA443342FFD for ; Thu, 28 Mar 2024 16:12:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12C0414C3 for ; Thu, 28 Mar 2024 16:12:54 +0000 (UTC) From: "Fabian Groffen" 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" Message-ID: <1711636898.fa7c24ebb3b27299fd2195d4e821c8c615c02eec.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: scripts/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: scripts/bootstrap-bash.sh X-VCS-Directories: scripts/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: fa7c24ebb3b27299fd2195d4e821c8c615c02eec X-VCS-Branch: master Date: Thu, 28 Mar 2024 16:12:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d46135ff-7228-4ec0-b09b-29c129b4b555 X-Archives-Hash: 2ca771612c9a39b43a6cff1fc63357b6 commit: fa7c24ebb3b27299fd2195d4e821c8c615c02eec Author: Fabian Groffen gentoo org> AuthorDate: Thu Mar 28 14:41:38 2024 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Thu Mar 28 14:41:38 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=fa7c24eb scripts/bootstrap-bash: shellcheck Signed-off-by: Fabian Groffen gentoo.org> scripts/bootstrap-bash.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/bootstrap-bash.sh b/scripts/bootstrap-bash.sh index c67d8943b7..db9d8c2795 100755 --- a/scripts/bootstrap-bash.sh +++ b/scripts/bootstrap-bash.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2006-2018 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 2006-2024 Gentoo Authors; Distributed under the GPL v2 # bash installer # @@ -14,15 +14,15 @@ if [ -z "$1" ] ; then fi mkdir -p "$1" -cd "$1" +cd "$1" || exit 1 mkdir bash-build -cd bash-build +cd bash-build || exit 1 GENTOO_MIRRORS=${GENTOO_MIRRORS:="http://distfiles.prefix.bitzolder.nl/distfiles"} command_exists() { check_cmd="$1" - command -v $check_cmd >/dev/null 2>&1 + command -v "${check_cmd}" >/dev/null 2>&1 } same_file() { @@ -40,7 +40,7 @@ if [ ! -e bash-4.2.tar.gz ] ; then eerror() { echo "!!! $*" 1>&2; } einfo() { echo "* $*"; } - if [ -z ${FETCH_COMMAND} ] ; then + if [ -z "${FETCH_COMMAND}" ] ; then # Try to find a download manager, we only deal with wget, # curl, FreeBSD's fetch and ftp. if command_exists wget; then @@ -65,7 +65,7 @@ if [ ! -e bash-4.2.tar.gz ] ; then ;; esac fi - if [ -z ${FETCH_COMMAND} ]; then + if [ -z "${FETCH_COMMAND}" ]; then eerror "no suitable download manager found (need wget, curl, fetch or ftp)" eerror "could not download ${1##*/}" eerror "download the file manually, and put it in ${PWD}" @@ -77,7 +77,7 @@ fi gzip -d bash-4.2.tar.gz tar -xf bash-4.2.tar -cd bash-4.2 +cd bash-4.2 || exit 2 ./configure --prefix="${1}"/usr --disable-nls make