mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
klp-build: Validate patch file existence
Make sure all patch files actually exist. Otherwise there can be confusing errors later. Acked-by: Song Liu <song@kernel.org> Reviewed-by: Miroslav Benes <mbenes@suse.cz> Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
This commit is contained in:
parent
946d3510fe
commit
b3ece3019e
|
|
@ -157,6 +157,7 @@ process_args() {
|
|||
local short
|
||||
local long
|
||||
local args
|
||||
local patch
|
||||
|
||||
short="hfj:o:vdS:T"
|
||||
long="help,show-first-changed,jobs:,output:,no-replace,verbose,debug,short-circuit:,keep-tmp"
|
||||
|
|
@ -235,6 +236,10 @@ process_args() {
|
|||
|
||||
KEEP_TMP="$keep_tmp"
|
||||
PATCHES=("$@")
|
||||
|
||||
for patch in "${PATCHES[@]}"; do
|
||||
[[ -f "$patch" ]] || die "$patch doesn't exist"
|
||||
done
|
||||
}
|
||||
|
||||
# temporarily disable xtrace for especially verbose code
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user