Merge pull request #31 from quivalen/set_fact.sh-patch-1
Update set_fact.sh to support multiple network
This commit is contained in:
@@ -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 "{"
|
||||||
|
|||||||
Reference in New Issue
Block a user