提交 41e79ca3 编写于 作者: L leizhongkai

support only update date

Signed-off-by: Nleizhongkai <leizhongkai@huawei.com>
上级 7eadc513
%global _version 2.0.0
%global _release 20200318.002428.gitdbc56638
%global _release 20200327.102036.git7eadc513
Name: iSulad-img
Version: %{_version}
Release: %{_release}
......
......@@ -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"
else
elif [[ ${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.
先完成此消息的编辑!
想要评论请 注册