From: Tobias Brunner Date: Mon, 2 Dec 2024 18:18:56 +0000 (+0100) Subject: testing: Use a single scp command to restore defaults X-Git-Tag: 6.0.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=832c811598b6e51f77394d2171f802e4594b4129;p=thirdparty%2Fstrongswan.git testing: Use a single scp command to restore defaults This is a bit faster than two sequential calls. --- diff --git a/testing/scripts/restore-defaults b/testing/scripts/restore-defaults index 0ef08f266f..a88f3eb891 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