ops/nixos/lib: fix latest_system_closure for machines with - in hostname

This commit is contained in:
Luke Granger-Brown 2021-04-04 19:25:02 +01:00
parent 33cfba2e2f
commit 8dab1a04fe

View file

@ -8,4 +8,4 @@ trap '{ rm -rf -- "$tmpdir"; }' EXIT
curl -so "$tmpdir/archive.zip" 'https://hg.lukegb.com/api/v4/projects/lukegb%2Fdepot/jobs/artifacts/branch%2Fdefault/download?job=nixCache' curl -so "$tmpdir/archive.zip" 'https://hg.lukegb.com/api/v4/projects/lukegb%2Fdepot/jobs/artifacts/branch%2Fdefault/download?job=nixCache'
unzip -d "$tmpdir" -q -o "$tmpdir/archive.zip" unzip -d "$tmpdir" -q -o "$tmpdir/archive.zip"
jq -r ".$(hostname)" "$tmpdir/systems.json" jq -r ".\"$(hostname)\"" "$tmpdir/systems.json"