From 3e7d7308cf12b00a25df1798f5c1cedbbdf2697d Mon Sep 17 00:00:00 2001 From: Steve Schnepp Date: Thu, 1 Oct 2020 20:40:43 +0200 Subject: [PATCH] Quoting vars --- tools/profiling/dump_node | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/profiling/dump_node b/tools/profiling/dump_node index 168158c6..34d4b630 100755 --- a/tools/profiling/dump_node +++ b/tools/profiling/dump_node @@ -1,13 +1,13 @@ #! /bin/sh -NODE=${1:-localhost} -PORT=${2:-4949} +NODE="${1:-localhost}" +PORT="${2:-4949}" { - for plugin in $(echo "list" | nc $NODE $PORT | tail -n 1) + for plugin in $(echo "list" | nc "$NODE" "$PORT" | tail -n 1) do echo "config $plugin" echo "fetch $plugin" done echo "quit" -} | nc $NODE $PORT +} | nc "$NODE" "$PORT"