diff options
| author | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-02 21:02:42 +0300 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2024-07-16 10:06:18 +0300 |
| commit | c0414419758b2521c2038847960af258c678db8d (patch) | |
| tree | c3d018a34fb165db57d1a754f889c4c0e1b4b7a9 /scripts/package/builddeb | |
| parent | c52090805382387f60c8e4cf8d613d0cf77ee1e9 (diff) | |
| download | linux-c0414419758b2521c2038847960af258c678db8d.tar.xz | |
kbuild: package: add -e and -u options to some shell scripts
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.
I tweaked mkdebian to cope with optional environment variables.
Remove the explicit "test -n ..." from install-extmod-build.
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>
Diffstat (limited to 'scripts/package/builddeb')
| -rwxr-xr-x | scripts/package/builddeb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb index e797ad360f7a..c1757db6aa8a 100755 --- a/scripts/package/builddeb +++ b/scripts/package/builddeb @@ -10,7 +10,7 @@ # specified in KDEB_HOOKDIR) that will be called on package install and # removal. -set -e +set -eu is_enabled() { grep -q "^$1=y" include/config/auto.conf |
