[patch master v3] fix patching error by empty build_patches dir
Jan-Tarek Butt
tarek at ring0.de
Sa Sep 10 21:14:52 CEST 2016
Hi,
> Am Samstag, den 10.09.2016, 20:32 +0200 schrieb Jan-Tarek Butt:
>> ---
>> buildscript | 8 +++++---
>> 1 file changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/buildscript b/buildscript
>> index 04942e6..1474966 100755
>> --- a/buildscript
>> +++ b/buildscript
>> @@ -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
> ^-- SC2046: Quote this to prevent word splitting.
> ^-- SC2086: Double quote to prevent globbing and word splitting.
>
> Bevor wir das Spiel noch dreimal machen.. Bitte prüf deine Änderungen im
> shellcheck.
Ah danke für den hinweiß :) coole seite.
vg
Tarek
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 801 bytes
Beschreibung: OpenPGP digital signature
URL : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160910/4391d724/attachment.sig>
Mehr Informationen über die Mailingliste franken-dev