forked from freifunk-franken/firmware
fix patching error by empty build_patches dir
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
This commit is contained in:
parent
f9f590d3d6
commit
04b84ee7bf
|
@ -122,9 +122,11 @@ get_source() {
|
|||
}
|
||||
|
||||
patch_target() {
|
||||
for patch in "$PWD"/build_patches/openwrt/*.patch; do
|
||||
patch --no-backup-if-mismatch -p0 -d "$target" -i "$patch"
|
||||
done
|
||||
if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -l)" -ge 1 ]; then
|
||||
for patch in "$PWD"/build_patches/openwrt/*.patch; do
|
||||
patch --no-backup-if-mismatch -p0 -d "$target" -i "$patch"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
prepare() {
|
||||
|
|
Loading…
Reference in New Issue