From: Schspa Shi <schspa@gmail.com>
To: ndesaulniers@google.com, masahiroy@kernel.org, michal.lkml@markovi.net
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
peterz@infradead.org, Schspa Shi <schspa@gmail.com>
Subject: [PATCH] kbuild: Allow to select bash in a modified environment
Date: Fri, 3 Jun 2022 17:38:52 +0800 [thread overview]
Message-ID: <20220603093852.13818-1-schspa@gmail.com> (raw)
This fixes the build error when the system has a default bash version
which is too old to support associative array variables.
The build error log as fellowing:
linux/scripts/check-local-export: line 11: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
Signed-off-by: Schspa Shi <schspa@gmail.com>
---
scripts/check-local-export | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/check-local-export b/scripts/check-local-export
index 017119d89cd2..2defd0bf3552 100755
--- a/scripts/check-local-export
+++ b/scripts/check-local-export
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2022 Masahiro Yamada <masahiroy@kernel.org>
--
2.24.3 (Apple Git-128)
next reply other threads:[~2022-06-03 9:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-03 9:38 Schspa Shi [this message]
2022-06-03 16:35 ` [PATCH] kbuild: Allow to select bash in a modified environment Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220603093852.13818-1-schspa@gmail.com \
--to=schspa@gmail.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=michal.lkml@markovi.net \
--cc=ndesaulniers@google.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.