Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
iSulad-img
提交
5bf2540f
I
iSulad-img
项目概览
openeuler
/
iSulad-img
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
iSulad-img
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5bf2540f
编写于
3月 27, 2020
作者:
O
openeuler-ci-bot
提交者:
Gitee
3月 27, 2020
浏览文件
操作
浏览文件
下载
差异文件
!25 support only update date
Merge pull request !25 from haozi007/master
上级
7eadc513
41e79ca3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
3 deletion
+3
-3
iSulad-img.spec
iSulad-img.spec
+1
-1
update-version.bash
update-version.bash
+2
-2
未找到文件。
iSulad-img.spec
浏览文件 @
5bf2540f
%global _version 2.0.0
%global _release 202003
18.002428.gitdbc56638
%global _release 202003
27.102036.git7eadc513
Name: iSulad-img
Version: %{_version}
Release: %{_release}
...
...
update-version.bash
浏览文件 @
5bf2540f
...
...
@@ -23,7 +23,7 @@ old_version=$(cat ${specfile} | grep "%global" | grep "_version" | awk {'print
first_old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
|
awk
-F
"."
{
'print $1'
}
)
second_old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
|
awk
-F
"."
{
'print $2'
}
)
third_old_version
=
$(
cat
${
specfile
}
|
grep
"%global"
|
grep
"_version"
|
awk
{
'print $3'
}
|
awk
-F
"."
{
'print $3'
}
)
read
-p
"Which level version do you want to upgrade?[1/2/3/N](default:N) select:"
choice
read
-p
"Which level version do you want to upgrade?[1/2/3/
d/
N](default:N) select:"
choice
if
[[
!
-n
"
${
choice
}
"
||
${
choice
}
==
"N"
]]
;
then
echo
"The version number has not been modified, it is still
${
old_version
}
"
exit
0
...
...
@@ -36,7 +36,7 @@ if [[ ${choice} -eq "1" ]]; then
elif
[[
${
choice
}
-eq
"2"
]]
;
then
second_old_version
=
$((
$second_old_version
+
1
))
third_old_version
=
"0"
el
se
el
if
[[
${
choice
}
-eq
"3"
]]
;
then
third_old_version
=
$((
$third_old_version
+
1
))
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录