summaryrefslogtreecommitdiffstats
path: root/scripts/package/buildtar
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-07-03 03:02:42 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2024-07-16 16:06:18 +0900
commitc0414419758b2521c2038847960af258c678db8d (patch)
treec3d018a34fb165db57d1a754f889c4c0e1b4b7a9 /scripts/package/buildtar
parentkbuild: deb-pkg: remove support for "name <email>" form for DEBEMAIL (diff)
downloadlinux-c0414419758b2521c2038847960af258c678db8d.tar.gz
linux-c0414419758b2521c2038847960af258c678db8d.zip
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/buildtar')
-rwxr-xr-xscripts/package/buildtar2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
index eb67787f8673..cc87a473c01f 100755
--- a/scripts/package/buildtar
+++ b/scripts/package/buildtar
@@ -11,7 +11,7 @@
# Wichert Akkerman <wichert@wiggy.net>.
#
-set -e
+set -eu
#
# Some variables and settings used throughout the script