summaryrefslogtreecommitdiff
path: root/gitclone
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-14 11:33:50 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-14 11:35:04 +0100
commitd89585fb718a4d499c877102f0b2aed7d2222b14 (patch)
tree46cc9fdced7f75f7f46cf7f7a3801fa2c2259885 /gitclone
parentdb3c1d9ccf64127e64f0bbce843c624c993a8eed (diff)
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)
Diffstat (limited to 'gitclone')
-rwxr-xr-xgitclone3
1 files changed, 3 insertions, 0 deletions
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
)