From 832c811598b6e51f77394d2171f802e4594b4129 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 2 Dec 2024 19:18:56 +0100 Subject: [PATCH] testing: Use a single scp command to restore defaults This is a bit faster than two sequential calls. --- testing/scripts/restore-defaults | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/testing/scripts/restore-defaults b/testing/scripts/restore-defaults index 0ef08f266..a88f3eb89 100755 --- a/testing/scripts/restore-defaults +++ b/testing/scripts/restore-defaults @@ -35,7 +35,6 @@ then for host in `ls $TESTSDIR/${testname}/hosts` do eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`" - scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTLOGIN:/ > /dev/null 2>&1 - scp $SSHCONF -r $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ > /dev/null 2>&1 + scp $SSHCONF -r $HOSTCONFIGDIR/default/etc $HOSTCONFIGDIR/${host}/etc $HOSTLOGIN:/ >/dev/null 2>&1 done fi