mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 16:05:54 +00:00
add fatal
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user