ydns-simple: tabs to spaces & break long lines

This commit is contained in:
Aminda Suomalainen 2015-01-18 12:32:20 +02:00
parent fc9446deff
commit f6d68e8f1e
1 changed files with 4 additions and 2 deletions

View File

@ -34,7 +34,8 @@ if [ "$WAN_IP4" = "$OLD_WAN_IP4" ]; then
else
echo $WAN_IP4 > $HOME/.wan_ip4-ydns.txt
echo "Updating DNS to $WAN_IP4"
curl -4 --basic -u"$USEREMAIL:$PASSWORD" --silent https://ydns.eu/api/v1/update/?host=$HOSTNAME
curl -4 --basic -u "$USEREMAIL:$PASSWORD" --silent \
https://ydns.eu/api/v1/update/?host=$HOSTNAME
fi
# Update IPv6
@ -43,5 +44,6 @@ if [ "$WAN_IP6" = "$OLD_WAN_IP6" ]; then
else
echo $WAN_IP6 > $HOME/.wan_ip6-ydns.txt
echo "Updating DNS to $WAN_IP6"
curl -6 --basic -u"$USEREMAIL:$PASSWORD" --silent https://ydns.eu/api/v1/update/?host=$HOSTNAME
curl -6 --basic -u "$USEREMAIL:$PASSWORD" --silent \
https://ydns.eu/api/v1/update/?host=$HOSTNAME
fi