Fix the ipset command replacement. For ipset="/sbin/ipset" Actual: /sbin//sbin/ipset 2>.foo.err | ... | xargs -n1 ipset Expected: /sbin/ipset 2>.foo.err | ... | xargs -n1 /sbin/ipset --- tests/runtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/runtest.sh b/tests/runtest.sh index 186f11d..8f4c02a 100755 --- a/tests/runtest.sh +++ b/tests/runtest.sh @@ -96,7 +96,7 @@ for types in $tests; do echo -ne "$types: $what: " cmd=`echo $cmd | sed "s|ipset|$ipset 2>.foo.err|"` # For the case: ipset list | ... | xargs -n1 ipset - cmd=`echo $cmd | sed "s|ipset|$ipset|"` + cmd=`echo $cmd | sed "s|ipset|$ipset|2g"` eval $cmd r=$? # echo $ret $r -- 2.11.0
Attachment:
signature.asc
Description: PGP signature