From 1c2361a5f736bb14fa809a7071b1ebf08f560f8d Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Fri, 9 Feb 2018 21:18:03 +1100 Subject: [PATCH] ctdb-tests: Fix a double-typo bug Amazingly, the code actually works! Understanding why is homework for real shell experts, who are not necessarily created ==! Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- ctdb/tests/eventscripts/scripts/local.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctdb/tests/eventscripts/scripts/local.sh b/ctdb/tests/eventscripts/scripts/local.sh index 83877c3e264..65676e08b21 100644 --- a/ctdb/tests/eventscripts/scripts/local.sh +++ b/ctdb/tests/eventscripts/scripts/local.sh @@ -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" }