From 96b8c570aefc73f9e3cd80950af90c5ab36f4fae Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Fri, 5 Aug 2022 16:56:18 +0800 Subject: [PATCH] add prefix argument --- .../{copy_isodir_to_testdir.sh => copy_isodir_to_destdir.sh} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename script/tools/{copy_isodir_to_testdir.sh => copy_isodir_to_destdir.sh} (96%) diff --git a/script/tools/copy_isodir_to_testdir.sh b/script/tools/copy_isodir_to_destdir.sh similarity index 96% rename from script/tools/copy_isodir_to_testdir.sh rename to script/tools/copy_isodir_to_destdir.sh index b216964..2355955 100644 --- a/script/tools/copy_isodir_to_testdir.sh +++ b/script/tools/copy_isodir_to_destdir.sh @@ -10,9 +10,10 @@ branch=$1 dirname=$2 ip=$3 update_key=$4 +prefix=$5 branch_path="/repo/openeuler/dailybuild/${branch}" iso_path="${branch_path}/${dirname}" -test_dirname="test_${dirname}" +test_dirname="${prefix}_${dirname}" ssh -i ${update_key} -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=60 root@${ip} " if [ -d ${branch_path} ];then -- Gitee