diff --git a/abra-hetzner b/abra-hetzner index 98f3fa3..36f290a 100755 --- a/abra-hetzner +++ b/abra-hetzner @@ -148,7 +148,7 @@ abra_hetzner() { ip=$(echo "$response" | jq -r ".server .public_net .ipv4 .ip") - if [[ ! -z "$ip" ]]; then + if [[ -n "$ip" ]]; then error_msg=$(echo "$response" | jq -r ".error .message") echo "Oops, something went wrong. Hetzner Cloud API responded with: $error_msg" exit 1