Skip to content
Snippets Groups Projects
Commit 72d9748d authored by MyIgel's avatar MyIgel :fire:
Browse files

Do moar $magic

parent da9e218f
No related branches found
No related tags found
1 merge request!108Do moar $magic
Pipeline #
......@@ -2,13 +2,13 @@
set -e
if [[ $# -ne 2 ]]; then
>&2 echo "`basename "$0"` \"https://map.foo.freifunk.net/path/to/nodes.json\" \"path/to/api.json\""
if [[ $# -ne 1 ]]; then
>&2 echo "`basename "$0"` 'path/to/api.json'"
exit
fi
nodesFile=$1
apiFile=$2
apiFile=$1
nodesFile=$(jq -r '.nodeMaps[]|select(.technicalType=="nodelist").url' "${apiFile}")
currentDate=$(date -u '+%Y-%m-%dT%T.%NZ')
nodesContent=$(curl -s --fail "${nodesFile}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment