mirror of
https://github.com/dynup/kpatch
synced 2025-01-20 03:50:42 +00:00
kpatch-build: process the patch name correctly
Process the patch name correctly that only concern the fuffix with .patch or .diff. Otherwise if the patch name is not end with .patch or .diff but has it as substring, the fuffix will be removed unreasonably. Signed-off-by: Li Bin <huawei.libin@huawei.com>
This commit is contained in:
parent
b60d3acddb
commit
441ab87643
@ -308,7 +308,7 @@ fi
|
||||
[[ -z $TARGETS ]] && TARGETS="vmlinux modules"
|
||||
|
||||
PATCHNAME=$(basename "$PATCHFILE")
|
||||
if [[ "$PATCHNAME" =~ \.patch ]] || [[ "$PATCHNAME" =~ \.diff ]]; then
|
||||
if [[ "$PATCHNAME" =~ \.patch$ ]] || [[ "$PATCHNAME" =~ \.diff$ ]]; then
|
||||
PATCHNAME="${PATCHNAME%.*}"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user