Add test function to recover clean output from command run on remote host

This commit is contained in:
Brice Fernandes authored and Bryan Boreham committed 2017-11-14 14:16:01 +00:00
1 parent c67bc704e1
commit 49ed40a301
1 file changed
+7
+7
View File
@@ -104,6 +104,13 @@ run_on() {
remote $host $SSH $host "$@"
}
get_command_output_on() {
host=$1
shift 1
[ -z "$DEBUG" ] || greyly echo "Running on $host: $@" >&2
$SSH $host "$@"
}
docker_on() {
host=$1
shift 1