diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-14 11:33:50 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-14 11:35:04 +0100 |
commit | d89585fb718a4d499c877102f0b2aed7d2222b14 (patch) | |
tree | 46cc9fdced7f75f7f46cf7f7a3801fa2c2259885 /gitclone | |
parent | db3c1d9ccf64127e64f0bbce843c624c993a8eed (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-x | gitclone | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 ) |