From 8dab1a04fe41d5eef340b2394ed6b252b84a9a51 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 4 Apr 2021 19:25:02 +0100 Subject: [PATCH] ops/nixos/lib: fix latest_system_closure for machines with - in hostname --- ops/nixos/lib/latest_system_closure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/nixos/lib/latest_system_closure.sh b/ops/nixos/lib/latest_system_closure.sh index 3f2d851695..52c4abea69 100755 --- a/ops/nixos/lib/latest_system_closure.sh +++ b/ops/nixos/lib/latest_system_closure.sh @@ -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' unzip -d "$tmpdir" -q -o "$tmpdir/archive.zip" -jq -r ".$(hostname)" "$tmpdir/systems.json" +jq -r ".\"$(hostname)\"" "$tmpdir/systems.json"