From f480649e4100be81fa108fd08c6b389c1107bb17 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 18 Oct 2015 19:36:57 +0200 Subject: [PATCH] functions.ipv6: Fix doubble square bracket when calling assert The assert check does not proper work when using doubble square backets, so the check fails for some unknown reasons. Removing one bracket will allow to successfully perform the assert check again. Signed-off-by: Stefan Schantl Signed-off-by: Michael Tremer --- src/functions/functions.ipv6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions/functions.ipv6 b/src/functions/functions.ipv6 index 9aedf84..2299135 100644 --- a/src/functions/functions.ipv6 +++ b/src/functions/functions.ipv6 @@ -399,7 +399,7 @@ ipv6_format() { } ipv6_addr_eq() { - assert [[ $# -eq 2 ]] + assert [ $# -eq 2 ] local addr1="${1}" local addr2="${2}" @@ -409,7 +409,7 @@ ipv6_addr_eq() { } ipv6_addr_gt() { - assert [[ $# -eq 2 ]] + assert [ $# -eq 2 ] local addr1="${1}" local addr2="${2}" -- 2.47.3