Compare commits
2 Commits
24ade5322f
...
e2b7b5976d
Author | SHA1 | Date |
---|---|---|
Asif Bacchus | e2b7b5976d | |
Asif Bacchus | 90e50bf74b |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue