#!/usr/bin/env bash # SPDX-FileCopyrightText: 2020 Luke Granger-Brown # # SPDX-License-Identifier: Apache-2.0 set -euo pipefail ssh_cmd="ssh -o StrictHostKeyChecking=accept-new" if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi system="$(jq -r ".[\"${1}\"]" systems.json)" echo System is $system $ssh_cmd -t "deployer@$1" '$(readlink -f $(which switch-prebuilt))' "$system"