Commit 0c678e3c authored by Jørgen Lien Sellæg's avatar Jørgen Lien Sellæg

fix faulty condition

parent 68c1e154
......@@ -27,7 +27,7 @@ function check_args {
function update_needed {
local registered_ip=$(dig +short ${DOMAIN})
local current_ip="$1"
[ "$current_ip" == "$registered_ip" ]
[ "$current_ip" != "$registered_ip" ]
}
function update_dns {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment