aboutsummaryrefslogtreecommitdiff
path: root/go/chromeos/target_sh
blob: 4c56252eb59732e1d2fe39e50094c1426915873f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
set -e -o pipefail

# Run a command on the target ChromeOS device.
#
# Usage: target_sh <cmd> <args>...

target="$1"
shift

ssh -i ${HOME}/.ssh/testing_rsa ${target} "$*"