hack/deploy: we have jq now

This commit is contained in:
Luke Granger-Brown 2021-03-20 13:11:23 +00:00
parent c7a66f35e6
commit e1aa4132d8

View file

@ -12,7 +12,7 @@ ssh_cmd="ssh -o StrictHostKeyChecking=accept-new"
if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi
system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)" system="$(jq -r ".[\"${1}\"]" systems.json)"
echo System is $system echo System is $system
$ssh_cmd -t "deployer@$1" switch-prebuilt "$system" $ssh_cmd -t "deployer@$1" switch-prebuilt "$system"