Quoting vars
This commit is contained in:
parent
4bb73b59c2
commit
3e7d7308cf
|
@ -1,13 +1,13 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
NODE=${1:-localhost}
|
NODE="${1:-localhost}"
|
||||||
PORT=${2:-4949}
|
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
|
do
|
||||||
echo "config $plugin"
|
echo "config $plugin"
|
||||||
echo "fetch $plugin"
|
echo "fetch $plugin"
|
||||||
done
|
done
|
||||||
echo "quit"
|
echo "quit"
|
||||||
} | nc $NODE $PORT
|
} | nc "$NODE" "$PORT"
|
||||||
|
|
Loading…
Reference in New Issue