Fix check for errors
continuous-integration/drone/push Build is passing Details

This commit is contained in:
decentral1se 2021-04-07 20:09:56 +02:00
parent 3d3afa0a7c
commit f7e1763aa4
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ abra_hetzner() {
ip=$(echo "$response" | $JQ -r ".server .public_net .ipv4 .ip")
if [[ -n "$ip" ]]; then
if [[ "$ip" == "null" ]]; then
error_msg=$(echo "$response" | jq -r ".error .message")
echo "Oops, something went wrong. Hetzner Cloud API responded with: $error_msg"
exit 1