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 stefan.schantl@ipfire.org --- 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}"