]> www.infradead.org Git - nvme.git/commitdiff
kconfig: add -e and -u options to *conf-cfg.sh scripts
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 11 Jun 2024 16:08:05 +0000 (01:08 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 15 Jul 2024 16:08:36 +0000 (01:08 +0900)
Set -e to make these scripts fail on the first error.

Set -u because these scripts are invoked by Makefile, and do not work
properly without necessary variables defined.

Both options are described in POSIX. [1]

[1]: https://pubs.opengroup.org/onlinepubs/009604499/utilities/set.html

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/kconfig/gconf-cfg.sh
scripts/kconfig/mconf-cfg.sh
scripts/kconfig/nconf-cfg.sh
scripts/kconfig/qconf-cfg.sh

index 040d8f33882029e35c957e367196218954d4fd1b..fc954c0538fa567b4cecd76d9db24cbfd4386db5 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
+set -eu
+
 cflags=$1
 libs=$2
 
index 1e61f50a590503d7ebcff42347113a84d6822198..1bc304dc2f7d99a1a9c650df71ca784d92963a5d 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
+set -eu
+
 cflags=$1
 libs=$2
 
index f871a2160e3633417b7cad88600b106ec4c7d9af..a20290b1a37d89a30034d22193c9e5fce5d2892c 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
+set -eu
+
 cflags=$1
 libs=$2
 
index 0e113b0f24557b7987016aa329b224b607adc0c7..bb2df66363a858c2cbe77825dab5bc182554d8e1 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/sh
 # SPDX-License-Identifier: GPL-2.0
 
+set -eu
+
 cflags=$1
 libs=$2
 bin=$3