File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 77
88curl -s -f -L -o kiosks.new.json " https://$MESHDB_HOST /api/v1/mapdata/kiosks/?format=json"
99jq . kiosks.new.json
10+ if [ " $( jq length kiosks.new.json) " -lt " 5" ]; then echo " Kiosk list too small" ; exit 1; fi
1011mv kiosks.new.json kiosks.json
1112
1213curl -s -f -L -o nodes.new.json " https://$MESHDB_HOST /api/v1/mapdata/nodes/?format=json"
1314jq . nodes.new.json
15+ if [ " $( jq length nodes.new.json) " -lt " 5" ]; then echo " Node list too small" ; exit 1; fi
1416mv nodes.new.json nodes.json
1517
1618curl -s -f -L -o links.new.json " https://$MESHDB_HOST /api/v1/mapdata/links/?format=json"
1719jq . links.new.json
20+ if [ " $( jq length links.new.json) " -lt " 5" ]; then echo " Links list too small" ; exit 1; fi
1821mv links.new.json links.json
1922
2023curl -s -f -L -o sectors.new.json " https://$MESHDB_HOST /api/v1/mapdata/sectors/?format=json"
2124jq . sectors.new.json
25+ if [ " $( jq length sectors.new.json) " -lt " 5" ]; then echo " Sectors list too small" ; exit 1; fi
2226mv sectors.new.json sectors.json
2327
You can’t perform that action at this time.
0 commit comments