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() {
|
patch_target() {
|
||||||
for patch in "$PWD"/build_patches/openwrt/*.patch; do
|
if [ "$(find "$PWD"/build_patches/openwrt/*.patch 2> /dev/null | wc -l)" -ge 1 ]; then
|
||||||
patch --no-backup-if-mismatch -p0 -d "$target" -i "$patch"
|
for patch in "$PWD"/build_patches/openwrt/*.patch; do
|
||||||
done
|
patch --no-backup-if-mismatch -p0 -d "$target" -i "$patch"
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
|
Loading…
Reference in New Issue