From 2e8a1dadae0fcb8176993b6830aefbd7c594c7ed Mon Sep 17 00:00:00 2001 From: wangchong1995924 <15229716099@163.com> Date: Fri, 10 Jun 2022 10:12:51 +0800 Subject: [PATCH] fix variable namme error --- script/tools/pkg_rpm_update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/tools/pkg_rpm_update.sh b/script/tools/pkg_rpm_update.sh index a740a68..fb1731a 100755 --- a/script/tools/pkg_rpm_update.sh +++ b/script/tools/pkg_rpm_update.sh @@ -251,7 +251,7 @@ fi if [[ ${flag} == 0 ]];then src_rpm=`cat binrpmlist | grep "src.rpm"` tmp_name=`echo ${src_rpm%-*}` - src_rpm_name=`echo ${tmp_rpm%-*}` + src_rpm_name=`echo ${tmp_name%-*}` result=`ssh -i ${update_key} -o StrictHostKeyChecking=no root@${update_ip} "cd ${update_dir}/source/Packages/ && ls | grep ^${src_rpm_name} | grep ${src_rpm_name}-[0-9]*.rpm"` if [[ "x${result}" == "x" ]];then echo "$src_rpm_name-xxx.oe1.src.rpm" >> NOT_FOUND -- Gitee