Enhance shell script error handling and debugging on GHA (#447)

This commit is contained in:
tequ
2025-02-24 18:33:21 +09:00
committed by GitHub
parent 8ccff44e8c
commit 89cacb1258
3 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,9 @@
#!/bin/bash
#!/bin/bash -u
# We use set -e and bash with -u to bail on first non zero exit code of any
# processes launched or upon any unbound variable.
# We use set -x to print commands before running them to help with
# debugging.
set -ex
set -e