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:
@@ -7,11 +7,12 @@ tmp_dir=""
|
|||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
if [ -n "${tmp_dir:-}" ] && [ -d "$tmp_dir" ]; then
|
if [ -n "${tmp_dir:-}" ] && [ -d "$tmp_dir" ]; then
|
||||||
rm -rf "$tmp_dir"
|
rm -rf "$tmp_dir" || true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup EXIT INT TERM
|
trap "cleanup; exit" INT TERM
|
||||||
|
trap cleanup EXIT
|
||||||
|
|
||||||
mkdir -p reports
|
mkdir -p reports
|
||||||
rm -rf adminfront/node_modules
|
rm -rf adminfront/node_modules
|
||||||
|
|||||||
Reference in New Issue
Block a user