Quoting vars
This commit is contained in:
parent
4bb73b59c2
commit
3e7d7308cf
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue