diff --git a/misc/core.func b/misc/core.func index 52926e4..da2cf31 100644 --- a/misc/core.func +++ b/misc/core.func @@ -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 diff --git a/misc/install.func b/misc/install.func index 7876e90..ba93d7e 100644 --- a/misc/install.func +++ b/misc/install.func @@ -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