ctdb-tools: Avoid shellcheck SC2188 warning (redirect without command)
authorMartin Schwenke <martin@meltin.net>
Thu, 13 Jul 2017 03:08:39 +0000 (13:08 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Aug 2017 03:15:25 +0000 (05:15 +0200)
Shellcheck found a bug!

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/ctdb_diagnostics

index e72c23f3998f1b40261f84f7c156dfe9f803fe35..eea6044429659c701c41f9973e8456c71a51cd0a 100755 (executable)
@@ -81,7 +81,7 @@ fi
 # are the same on the nodes
 CONFIG_FILES_MAY="/usr/local/etc/ctdb/public_addresses /usr/local/etc/ctdb/static-routes"
 
-2>&1
+exec 2>&1
 
 cat <<EOF
 --------------------------------------------------------------------