From d89585fb718a4d499c877102f0b2aed7d2222b14 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 14 May 2023 11:33:50 +0100 Subject: gitclone: check for invalid patch filename where the asterisk is used, it can sometimes literally try to patch with a file named "*", which of course does not exist this change fixes an lbmk error when running: ./download seabios this was caused recently, because all patches were seabios were removed (lbmk currently uses stock seabios, without patching it) --- gitclone | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gitclone') diff --git a/gitclone b/gitclone index 6a0079a2..46d0306f 100755 --- a/gitclone +++ b/gitclone @@ -35,6 +35,9 @@ Check_vars(){ Patch(){ for patchfile in ${PWD}/${patchdir}/*.patch ; do + if [ ! -f "${patchfile}" ]; then + continue + fi ( cd ${tmp_dir} git am ${patchfile} || return 1 ) -- cgit v1.2.1