forked from coop-cloud/abra-hetzner
Appease shellcheck
This commit is contained in:
parent
61909b4e34
commit
411ec8c7cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue