make output more consistent

This commit is contained in:
Aaron Riedel 2022-04-26 00:43:26 +02:00
parent 8fa7974e09
commit da2172cafd
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 8 additions and 8 deletions

View file

@ -91,10 +91,10 @@ if [ $? -eq 1 ]; then
\"zone_id\": \"${HETZNER_API_ZONE}\" \"zone_id\": \"${HETZNER_API_ZONE}\"
}") }")
if [ $API_STATUS_CODE != "200" ]; then if [ $API_STATUS_CODE != "200" ]; then
echo -e "${REPLACE}${FAIL} Set new Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${FAIL} Set new Record ($(response_code $API_STATUS_CODE))"
exit 1 exit 1
else else
echo -e "${REPLACE}${DONE} Set new Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${DONE} Set new Record ($(response_code $API_STATUS_CODE))"
fi fi
else else
echo -e "${INFO} Record already there" echo -e "${INFO} Record already there"
@ -115,10 +115,10 @@ else
\"zone_id\": \"${HETZNER_API_ZONE}\" \"zone_id\": \"${HETZNER_API_ZONE}\"
}") }")
if [ $API_STATUS_CODE != "200" ]; then if [ $API_STATUS_CODE != "200" ]; then
echo -e "${REPLACE}${FAIL} Updating Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${FAIL} Updating Record ($(response_code $API_STATUS_CODE))"
exit 1 exit 1
else else
echo -e "${REPLACE}${DONE} Updating Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${DONE} Updating Record ($(response_code $API_STATUS_CODE))"
fi fi
else else
echo -e "${INFO} IP has not changed" echo -e "${INFO} IP has not changed"

View file

@ -91,10 +91,10 @@ if [ $? -eq 1 ]; then
\"zone_id\": \"${HETZNER_API_ZONE}\" \"zone_id\": \"${HETZNER_API_ZONE}\"
}") }")
if [ $API_STATUS_CODE != "200" ]; then if [ $API_STATUS_CODE != "200" ]; then
echo -e "${REPLACE}${FAIL} Set new Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${FAIL} Set new Record ($(response_code $API_STATUS_CODE))"
exit 1 exit 1
else else
echo -e "${REPLACE}${DONE} Set new Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${DONE} Set new Record ($(response_code $API_STATUS_CODE))"
fi fi
else else
echo -e "${INFO} Record already there" echo -e "${INFO} Record already there"
@ -115,10 +115,10 @@ else
\"zone_id\": \"${HETZNER_API_ZONE}\" \"zone_id\": \"${HETZNER_API_ZONE}\"
}") }")
if [ $API_STATUS_CODE != "200" ]; then if [ $API_STATUS_CODE != "200" ]; then
echo -e "${REPLACE}${FAIL} Updating Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${FAIL} Updating Record ($(response_code $API_STATUS_CODE))"
exit 1 exit 1
else else
echo -e "${REPLACE}${DONE} Updating Record $(response_code $API_STATUS_CODE)" echo -e "${REPLACE}${DONE} Updating Record ($(response_code $API_STATUS_CODE))"
fi fi
else else
echo -e "${INFO} IP has not changed" echo -e "${INFO} IP has not changed"