!7 change generate argument check range

From: @linxiaoxu131415
Reviewed-by: @jianminw
Signed-off-by: @jianminw
This commit is contained in:
openeuler-ci-bot 2021-10-20 04:17:44 +00:00 committed by Gitee
commit c1c94707f5
2 changed files with 38 additions and 2 deletions

29
0001-argumentchange.patch Normal file
View File

@ -0,0 +1,29 @@
From 377a5a9a81a3063ab56e2916575d46c0ec984f52 Mon Sep 17 00:00:00 2001
From: linxiaoxu131415 <linxiaoxu@huawei.com>
Date: Wed, 13 Oct 2021 07:54:55 +0000
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E6=A0=A1?=
=?UTF-8?q?=E9=AA=8C=E8=8C=83=E5=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
scripts/generate.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/generate.sh b/scripts/generate.sh
index c181221..7a57b05 100644
--- a/scripts/generate.sh
+++ b/scripts/generate.sh
@@ -291,7 +291,7 @@ if [ $# != 4 ];then
fi
set +eE
-for i in $*
+for i in $1 $2 $3
do
echo "$i" | grep -v -E ${CHECK_REGEX}
filterParam=$(echo "$i" | grep -v -E ${CHECK_REGEX})
--
2.23.0

View File

@ -2,12 +2,13 @@
Name: KubeOS
Version: 1.0.0
Release: 3
Release: 4
Summary: O&M platform used to update the whole OS as an entirety
License: Mulan PSL v2
Source0: https://gitee.com/openeuler/isula-build/repository/archive/v%{version}.tar.gz
ExclusiveArch: x86_64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Patch1: 0001-argumentchange.patch
BuildRequires: make
BuildRequires: golang >= 1.13
%description
@ -77,6 +78,12 @@ install -p -m 0600 ./files/os-release %{buildroot}/opt/kubeOS/files
rm -rfv %{buildroot}
%changelog
* Tue Oct 19 2021 linxiaoxu<linxiaoxu@huawei.com> - 1.0.0-4
- Type:requirement
- CVE:NA
- SUG:restart
- DESC:change argument check range
* Thu Sep 30 2021 liyuanrong<liyuanrong1@huawei.com> - 1.0.0-2
- Type:requirement
- CVE:NA