ctdb-tests: Fix a double-typo bug
authorMartin Schwenke <martin@meltin.net>
Fri, 9 Feb 2018 10:18:03 +0000 (21:18 +1100)
committerMartin Schwenke <martins@samba.org>
Thu, 1 Mar 2018 18:39:14 +0000 (19:39 +0100)
Amazingly, the code actually works!  Understanding why is homework for
real shell experts, who are not necessarily created ==!

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

index 83877c3e2649c3aac6430f0c9a5d64d893b61bfa..65676e08b21c67dd54ead118717c9c367c11611d 100644 (file)
@@ -163,8 +163,8 @@ _tcp_connections ()
 
 setup_tcp_connections ()
 {
-       _t==$(mktemp --tmpdir="$EVENTSCRIPTS_TESTS_VAR_DIR")
-       export FAKE_NETSTAT_TCP_ESTABLISHED_FILE"$_t"
+       _t=$(mktemp --tmpdir="$EVENTSCRIPTS_TESTS_VAR_DIR")
+       export FAKE_NETSTAT_TCP_ESTABLISHED_FILE="$_t"
        _tcp_connections "$@" >"$FAKE_NETSTAT_TCP_ESTABLISHED_FILE"
 }