kpatch-build: convert spaces in patch name to '-'

This commit is contained in:
Josh Poimboeuf 2014-07-29 17:02:10 -05:00
parent c884811bb9
commit a0756a5f1d

View File

@ -250,7 +250,7 @@ fi
[[ -z $TARGETS ]] && TARGETS="vmlinux modules"
PATCHNAME="$(basename $PATCHFILE)"
PATCHNAME=$(basename "$PATCHFILE")
if [[ "$PATCHNAME" =~ \.patch ]] || [[ "$PATCHNAME" =~ \.diff ]]; then
PATCHNAME="${PATCHNAME%.*}"
fi