make_hotpatch: fix some grammar error

Signed-off-by: hubin <hubin73@huawei.com>
This commit is contained in:
hubin 2022-05-30 19:48:05 +08:00
parent f7a943d75e
commit 3a830da0f3
2 changed files with 14 additions and 8 deletions

View File

@ -1,7 +1,7 @@
Name: kpatch Name: kpatch
Epoch: 1 Epoch: 1
Version: 0.9.5 Version: 0.9.5
Release: 9 Release: 10
Summary: A Linux dynamic kernel patching infrastructure Summary: A Linux dynamic kernel patching infrastructure
License: GPLv2 License: GPLv2
@ -113,6 +113,12 @@ popd
%{_mandir}/man1/*.1.gz %{_mandir}/man1/*.1.gz
%changelog %changelog
* Mon May 30 2022 Bin Hu <hubin73@huawei.com> -1:0.9.5-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:make_hotpatch: fix some grammar error
* Mon May 23 2022 Bin Hu <hubin73@huawei.com> -1:0.9.5-9 * Mon May 23 2022 Bin Hu <hubin73@huawei.com> -1:0.9.5-9
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA

View File

@ -196,8 +196,8 @@ function fn_check_jobs()
######################################################### #########################################################
function fn_check_patch(){ function fn_check_patch(){
local l_patch=$1 local l_patch=$1
if [ ! -f $1 ];then if [ ! -f "$1" ];then
echo "error:patch file $1 not exist" echo "error:patch file $1 does not exist"
return 1 return 1
fi fi
G_PATCHFILE=$l_patch G_PATCHFILE=$l_patch
@ -232,7 +232,7 @@ function fn_check_kernelsrc()
local l_kernelsrc=$1 local l_kernelsrc=$1
if [ ! -d "$l_kernelsrc" ];then if [ ! -d "$l_kernelsrc" ];then
echo "error: kernel src $l_kernelsrc is not exist, check kernel src failed" echo "error: kernel src $l_kernelsrc does not exist, check kernel src failed"
return 1 return 1
fi fi
G_KERNEL_SRC=$l_kernelsrc G_KERNEL_SRC=$l_kernelsrc
@ -250,7 +250,7 @@ function fn_check_modulesrc()
local l_modulesrc=$1 local l_modulesrc=$1
if [ ! -d "$l_modulesrc" ];then if [ ! -d "$l_modulesrc" ];then
echo "error: module src $l_modulesrc is not exist, check module src failed" echo "error: module src $l_modulesrc does not exist, check module src failed"
return 1 return 1
fi fi
echo "$l_modulesrc" | grep -q ^/ echo "$l_modulesrc" | grep -q ^/
@ -272,7 +272,7 @@ function fn_check_makefile()
local l_module_makefile=$1 local l_module_makefile=$1
if [ ! -f "$l_module_makefile" ] && [ "$(basename $l_module_makefile)" = "Makefile" ];then if [ ! -f "$l_module_makefile" ] && [ "$(basename $l_module_makefile)" = "Makefile" ];then
echo "error: module makefile $l_module_makefile is not exist or makefile name is not Makefile, check module makefile failed" echo "error: module makefile $l_module_makefile does not exist or makefile name is not Makefile, check module makefile failed"
return 1 return 1
fi fi
echo "$l_module_makefile" | grep -q ^/ echo "$l_module_makefile" | grep -q ^/
@ -294,7 +294,7 @@ function fn_check_extra_flags()
local l_extra_flags=$1 local l_extra_flags=$1
if [ ! -f "$l_extra_flags" ];then if [ ! -f "$l_extra_flags" ];then
echo "error: extra flags file $l_extra_flags is not exist, check extra flags failed" echo "error: extra flags file $l_extra_flags does not exist, check extra flags failed"
return 1 return 1
fi fi
G_EXT_FLAGS="`readlink -f ${l_extra_flags}`" G_EXT_FLAGS="`readlink -f ${l_extra_flags}`"
@ -508,7 +508,7 @@ function fn_makepatch()
echo "error: do not modify the header file" echo "error: do not modify the header file"
return 1 return 1
fi fi
if [ -f $G_PATCHFILE ];then if [ -f "$G_PATCHFILE" ];then
echo "make patch $G_PATCHFILE" echo "make patch $G_PATCHFILE"
else else
echo "no change detected" echo "no change detected"