add fatal

This commit is contained in:
CanbiZ 2025-05-15 15:02:36 +02:00
parent 1c9d0d9665
commit 9d4af5021b
2 changed files with 6 additions and 2 deletions

View File

@ -233,6 +233,11 @@ detect_os() {
esac
}
fatal() {
msg_error "$1"
kill -INT $$
}
### dev spinner ###
# Trap cleanup on various signals
trap 'cleanup_spinner' EXIT INT TERM HUP

View File

@ -140,8 +140,7 @@ network_check() {
done
if [[ "$DNS_FAILED" == true ]]; then
msg_error "$GITHUB_STATUS"
exit 1
fatal "$GITHUB_STATUS"
else
msg_ok "$GITHUB_STATUS"
fi