Merge pull request #31 from quivalen/set_fact.sh-patch-1

Update set_fact.sh to support multiple network
develop
Marcus 2020-03-09 02:28:44 +01:00 committed by GitHub
commit a84ea36b37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ NETWORKS=$(zerotier-cli listnetworks | tail -n+2)
function file_content {
if [ ! -z "$NETWORKS" ]; then
network_count=$(echo $NETWORKS |wc -l)
network_count=$(echo "$NETWORKS" |wc -l)
counter=1
echo "{"