Add test function to recover clean output from command run on remote host
This commit is contained in:
1 parent
c67bc704e1
commit
49ed40a301
1 file changed
+7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user