From 848d673257ae8f3355387b4870cf617f2df737fe Mon Sep 17 00:00:00 2001 From: tim Date: Fri, 9 Mar 2018 20:30:01 +0200 Subject: [PATCH] Skip if it's an IPv6 address; at some point, maybe we'll support that too. --- update_ip.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update_ip.sh b/update_ip.sh index 10e319c..fbf3135 100755 --- a/update_ip.sh +++ b/update_ip.sh @@ -17,6 +17,11 @@ if [ -f "${HOME}/${cache}" ]; then old_ip=$(cat "${HOME}/${cache}") fi +# Exit if we're at an IPv6 address +if [ -z "${ip##*:*}" ]; then + exit; +fi + if [ "${set_ip}" = "${ip}" ] && [ "${ip}" = "${old_ip}" ]; then exit; else