Skip to content

Commit

Permalink
Kept DNS IP blank when status NOT OK or Unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
navilg committed Jul 12, 2020
1 parent 8bd9339 commit c5eb353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godaddyDDNS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ function writeLog()
return 0
elif [[ $1 -eq 100 ]]; then
echo "DNS Name: "$name.$domain"" > $DIR/godaddyDDNS.log
echo "DNS IP: $currentIp" >> $DIR/godaddyDDNS.log
echo "DNS IP: " >> $DIR/godaddyDDNS.log
echo "Status: Unknown - "$2"" >> $DIR/godaddyDDNS.log
return 100
else
echo "DNS Name: "$name.$domain"" > $DIR/godaddyDDNS.log
echo "DNS IP: $currentIp" >> $DIR/godaddyDDNS.log
echo "DNS IP: " >> $DIR/godaddyDDNS.log
echo "Status: NOT OK - "$2"" >> $DIR/godaddyDDNS.log
return 1
fi
Expand Down

0 comments on commit c5eb353

Please sign in to comment.