From 0f0e3207f73b55d16fa369b26e1a2b7ed96734f1 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Fri, 25 Feb 2022 13:01:00 +0100 Subject: -portable fix for ips --- src/gns/test_gns_gns2dns_lookup.sh | 2 +- src/gns/test_gns_gns2dns_zkey_lookup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gns/test_gns_gns2dns_lookup.sh b/src/gns/test_gns_gns2dns_lookup.sh index 6cb1cc43e..240e441a4 100755 --- a/src/gns/test_gns_gns2dns_lookup.sh +++ b/src/gns/test_gns_gns2dns_lookup.sh @@ -93,7 +93,7 @@ else ret=1 fi -if [ "$RES_IP6" = "$TEST_IP6" ] +if [ "${RES_IP6%?}" = "${TEST_IP6%?}" ] then echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." else diff --git a/src/gns/test_gns_gns2dns_zkey_lookup.sh b/src/gns/test_gns_gns2dns_zkey_lookup.sh index c5a7fe4a0..a299c34b6 100755 --- a/src/gns/test_gns_gns2dns_zkey_lookup.sh +++ b/src/gns/test_gns_gns2dns_zkey_lookup.sh @@ -90,7 +90,7 @@ else ret=1 fi -if [ "$RES_IP6" = "$TEST_IP6" ] +if [ "${RES_IP6%?}" = "${TEST_IP6%?}" ] then echo "PASS: Resolved $TEST_DOMAIN to $RES_IP6." else -- cgit v1.2.3