deploy: fix quoting

This commit is contained in:
Sean Buckley 2022-01-04 11:54:12 -05:00
parent b2c86c2919
commit f71b84df07

View file

@ -64,7 +64,7 @@ let
export SSH_CONFIG_FILE=${sshConfig} export SSH_CONFIG_FILE=${sshConfig}
c="${pkgs.colmena}/bin/colmena" c="${pkgs.colmena}/bin/colmena"
j="$($c eval -E '{nodes,...}: builtins.mapAttrs (n: v: v.config.system.build.toplevel) nodes')" j="$($c eval -E '{nodes,...}: builtins.mapAttrs (n: v: v.config.system.build.toplevel) nodes')"
$c exec -- '[ "$(echo '"'$j'"' | jq -r .$(hostname))" = "$(readlink /run/current-system)" ]' $c exec -- '[ "$(echo '"'$j'"' | jq -r .\"$(hostname)\")" = "$(readlink /run/current-system)" ]'
''; '';
check-reboots = pkgs.writeShellScript "check-reboots" '' check-reboots = pkgs.writeShellScript "check-reboots" ''