From c7a66f35e6cbfdfb3e997f77bd1a16e4d10b7b06 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 20 Mar 2021 13:06:52 +0000 Subject: [PATCH] hack/deploy: move ssh_cmd to right place --- hack/deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/deploy.sh b/hack/deploy.sh index 6719baada1..ff99acf466 100755 --- a/hack/deploy.sh +++ b/hack/deploy.sh @@ -8,10 +8,11 @@ set -euo pipefail ./hack/populate_secrets.sh +ssh_cmd="ssh -o StrictHostKeyChecking=accept-new" + if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)" echo System is $system -ssh_cmd="ssh -o StrictHostKeyChecking=accept-new" $ssh_cmd -t "deployer@$1" switch-prebuilt "$system"