ctdb-tests: Fix typo in local daemons IPv6 setup
authorMartin Schwenke <martin@meltin.net>
Thu, 8 Sep 2016 09:01:31 +0000 (19:01 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 22 Sep 2016 06:34:20 +0000 (08:34 +0200)
This should be a sub-shell not an arithmetic expansion.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tests/simple/scripts/local_daemons.bash

index 2d6ec56b80f246a9f2afc9121c3a2a6d43830499..b5cfff58eb0a364dd750194f80dae042a823dcb2 100644 (file)
@@ -56,7 +56,7 @@ setup_ctdb ()
     local i
     for i in $(seq 1 $TEST_LOCAL_DAEMONS) ; do
        if [ "${CTDB_USE_IPV6}x" != "x" ]; then
-           j=$((printf "%02x" $i))
+           j=$(printf "%02x" $i)
            echo "fd00::5357:5f${j}" >>"$CTDB_NODES"
            # FIXME: need to add addresses to lo as root before running :-(
            # ip addr add "fc00:10::${i}/64" dev lo