Compare commits

...

2 Commits

Author SHA1 Message Date
CanbiZ
0c68aba810 Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED 2025-05-15 15:02:44 +02:00
CanbiZ
9d4af5021b add fatal 2025-05-15 15:02:36 +02:00
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