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

Update set_fact.sh to support multiple network
This commit is contained in:
Marcus
2020-03-09 02:28:44 +01:00
committed by GitHub

View File

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