1
0
forked from baron/baron-sso

fix(ci): ensure bash trap cleanup does not return a non-zero exit code which fails the overall github action job

This commit is contained in:
2026-05-15 17:17:09 +09:00
parent cca8aea7a2
commit b1e617ff37

View File

@@ -7,11 +7,12 @@ tmp_dir=""
cleanup() {
if [ -n "${tmp_dir:-}" ] && [ -d "$tmp_dir" ]; then
rm -rf "$tmp_dir"
rm -rf "$tmp_dir" || true
fi
}
trap cleanup EXIT INT TERM
trap "cleanup; exit" INT TERM
trap cleanup EXIT
mkdir -p reports
rm -rf adminfront/node_modules