]> git.ipfire.org Git - people/ms/network.git/commitdiff
functions.ipv6: Fix doubble square bracket when calling assert
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 18 Oct 2015 17:36:57 +0000 (19:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Oct 2015 22:09:19 +0000 (23:09 +0100)
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>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.ipv6

index 9aedf84717bae313971c1bd883c47d3ad9d2ced5..229913535e688b25935065488930d23f992d6caa 100644 (file)
@@ -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}"