From da2172cafda9c55925875e09a90e56cc6380f77e Mon Sep 17 00:00:00 2001 From: aaron Date: Tue, 26 Apr 2022 00:43:26 +0200 Subject: [PATCH] make output more consistent --- ddns4.sh | 8 ++++---- ddns6.sh | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ddns4.sh b/ddns4.sh index 9130dc1..5400014 100755 --- a/ddns4.sh +++ b/ddns4.sh @@ -91,10 +91,10 @@ if [ $? -eq 1 ]; then \"zone_id\": \"${HETZNER_API_ZONE}\" }") 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 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 else echo -e "${INFO} Record already there" @@ -115,10 +115,10 @@ else \"zone_id\": \"${HETZNER_API_ZONE}\" }") 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 else - echo -e "${REPLACE}${DONE} Updating Record $(response_code $API_STATUS_CODE)" + echo -e "${REPLACE}${DONE} Updating Record ($(response_code $API_STATUS_CODE))" fi else echo -e "${INFO} IP has not changed" diff --git a/ddns6.sh b/ddns6.sh index 0e6302b..950d0c3 100755 --- a/ddns6.sh +++ b/ddns6.sh @@ -91,10 +91,10 @@ if [ $? -eq 1 ]; then \"zone_id\": \"${HETZNER_API_ZONE}\" }") 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 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 else echo -e "${INFO} Record already there" @@ -115,10 +115,10 @@ else \"zone_id\": \"${HETZNER_API_ZONE}\" }") 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 else - echo -e "${REPLACE}${DONE} Updating Record $(response_code $API_STATUS_CODE)" + echo -e "${REPLACE}${DONE} Updating Record ($(response_code $API_STATUS_CODE))" fi else echo -e "${INFO} IP has not changed"