mirror of
https://github.com/aaronriedel/hetzner-ddns.git
synced 2024-11-18 00:56:41 +01:00
make output more consistent
This commit is contained in:
parent
8fa7974e09
commit
da2172cafd
2 changed files with 8 additions and 8 deletions
8
ddns4.sh
8
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"
|
||||
|
|
8
ddns6.sh
8
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"
|
||||
|
|
Loading…
Reference in a new issue