Silence curl output in DuckDNS script

This commit is contained in:
Kris Lamoureux 2020-08-26 21:00:08 -04:00
parent f95881f9b1
commit 2fbf9925fa
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -11,7 +11,7 @@ token="{{ duckdns.token }}"
url="https://www.duckdns.org/update?domains=$domains&token=$token&ip="
time=$(date '+%Y%m%d-%H%M%S')
result=$(curl $url)
result=$(curl --silent $url)
if [ "$result" = "OK" ]; then
echo "[$time] OK" >> $log