diff --git a/ufw b/ufw index f70d7cb..277c706 100755 --- a/ufw +++ b/ufw @@ -243,6 +243,10 @@ get_api_status() { jq -r '.status.code, .status.message' ) + if ! [[ $api_status ]]; then + return 1 + fi + if (( api_status >= 400 )); then return 1 fi