Compare commits

...

2 Commits

Author SHA1 Message Date
Asif Bacchus e2b7b5976d Bugfix: IP address now logged in all circumstances. 2018-09-14 00:21:42 -06:00
Asif Bacchus 90e50bf74b piped output from curl check to null 2018-09-14 00:06:02 -06:00
1 changed files with 3 additions and 4 deletions

View File

@ -205,7 +205,7 @@ elif [ -z ${dnsRecords} ]; then
fi
# Check if curl is installed
command -v curl
command -v curl >> /dev/null
curlResult=$(echo "$?")
if [ $curlResult -ne 0 ]; then
quit 2
@ -239,10 +239,9 @@ if [ -z "$ipAddress" ]; then
if [ "$ipLookupResult" -ne 0 ]; then
quit 201
fi
else
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Using IP address:" \
"$ipAddress" >> $logFile
fi
echo -e "\e[1;36m[`date +%Y-%m-%d` `date +%H:%M:%S`] Using IP address:" \
"$ipAddress" >> $logFile
## Check if desired record(s) exist at CloudFlare