Skip to content

Commit

Permalink
Quoting vars
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp authored Oct 1, 2020
1 parent 4bb73b5 commit 3e7d730
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/profiling/dump_node
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 3e7d730

Please sign in to comment.