setlocalversion: add -e option
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 18 Nov 2024 23:09:06 +0000 (08:09 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 23:11:56 +0000 (08:11 +0900)
commite2ff1219a5541a22921016219c4d86a6d0190d15
treed460a0e927255493562197651afb163f78ffcf6e
parent523f3dbc187a9618d4fd80c2b438e4d490705dcd
setlocalversion: add -e option

Set the -e option to ensure this script fails on any unexpected errors.

Without this change, the kernel build may continue running with an
incorrect string in include/config/kernel.release.

Currently, try_tag() returns 1 when the expected tag is not found as an
ancestor, but this is a case where the script should continue.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/setlocalversion