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>
Thu, 8 Dec 2022 09:55:52 +0000 (10:55 +0100)
commit18d3c529fa4ab8dafcf6c147cf3cb55792d8ca10
tree64d0c37586c4940943094d1cf91d35fb8798c580
parent6703d7623097b591ea08c12e66351eed884e1005
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