Quoting vars

This commit is contained in:
Steve Schnepp 2020-10-01 20:40:43 +02:00 committed by GitHub
parent 4bb73b59c2
commit 3e7d7308cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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"