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:56:16 +0000 (10:56 +0100)
commitc10f3e369e1e2297fc4c5fe575ed18d82550a882
tree62aad111516834b3a5d9f6c31934c3dfc56cfce6
parent522d181e28b03c42529661a218d537ea857400be
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>
(cherry picked from commit 18d3c529fa4ab8dafcf6c147cf3cb55792d8ca10)
.github/workflows/entrypoint.sh