From: Stefan Schantl Date: Sun, 18 Oct 2015 17:36:57 +0000 (+0200) Subject: functions.ipv6: Fix doubble square bracket when calling assert X-Git-Tag: 007~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f480649e4100be81fa108fd08c6b389c1107bb17;p=network.git 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 --- diff --git a/src/functions/functions.ipv6 b/src/functions/functions.ipv6 index 9aedf847..22991353 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}"