github-ci: error on any shell errors
authorAlois Klink <alois@aloisklink.com>
Wed, 23 Nov 2022 18:37:01 +0000 (18:37 +0000)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Tue, 16 May 2023 07:31:44 +0000 (09:31 +0200)
commit03ca0722f73c8121521ff59ca9a4ad6358b6a262
tree2011eea90a8c054b795bce3c9adc1d55278d7c7f
parent51c05a1030b400722ad075a3a22f0132f11c4159
github-ci: error on any shell errors

Enable `errexit` and `nounset` [POSIX shell options][1]
in `.github/workflows/entrypoint.sh` so that the script fails
if any command within the script fails.

[1]: https://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#set

Reported-by: Marius Dinu <m95d+git@psihoexpert.ro>
Fixes: https://github.com/openwrt/packages/issues/19953
Signed-off-by: Alois Klink <alois@aloisklink.com>
.github/workflows/entrypoint.sh