diff --git a/ufw b/ufw index 6a09e45..7ede521 100755 --- a/ufw +++ b/ufw @@ -243,6 +243,7 @@ get_api_status() { jq -r '.status.code, .status.message' ) + # This quickly checks if the variable contains an integer or not (which is good enough here) printf -v _ '%d' "$api_status" || { err "Got invalid status from the api: $api_status" return 1