scripts: fix shellcheck SC2231 'Quote expansions in this for loop glob to prevent wordsplitting, e.g. "$dir"/*.txt .'
This commit is contained in:
parent
f92868bd30
commit
be640d4c49
@ -59,9 +59,9 @@ cd linux-$KVER
|
|||||||
make clean
|
make clean
|
||||||
make mrproper
|
make mrproper
|
||||||
#Apply the usb and mmc patches if unapplied
|
#Apply the usb and mmc patches if unapplied
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
|
|
||||||
#copy in the initramfs and kernel config
|
#copy in the initramfs and kernel config
|
||||||
cp $ROOT_DIR/build/PrawnOS-initramfs.cpio.gz .
|
cp $ROOT_DIR/build/PrawnOS-initramfs.cpio.gz .
|
||||||
|
@ -42,9 +42,9 @@ cd linux-$KVER
|
|||||||
make clean
|
make clean
|
||||||
make mrproper
|
make mrproper
|
||||||
#Apply the usb and mmc patches if unapplied
|
#Apply the usb and mmc patches if unapplied
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/5.x-dwc2/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/DTS/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
[ "$FRESH" = true ] && for i in $RESOURCES/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done
|
[ "$FRESH" = true ] && for i in "$RESOURCES"/patches-tested/kernel/*.patch; do echo $i; patch -p1 < $i; done
|
||||||
|
|
||||||
cp $RESOURCES/config .config
|
cp $RESOURCES/config .config
|
||||||
make menuconfig ARCH=arm CROSS_COMPILE=arm-none-eabi- .config
|
make menuconfig ARCH=arm CROSS_COMPILE=arm-none-eabi- .config
|
||||||
|
@ -20,8 +20,8 @@ cd build
|
|||||||
cd linux-$KVER
|
cd linux-$KVER
|
||||||
make clean
|
make clean
|
||||||
make mrproper
|
make mrproper
|
||||||
#Apply the usb and mmc patches if unapplie
|
#Apply the usb and mmc patches if unapplied
|
||||||
for i in $RESOURCES/patches-tested/DTS/*.patch; do patch -p1 < $i; done
|
for i in "$RESOURCES"/patches-tested/DTS/*.patch; do patch -p1 < $i; done
|
||||||
for i in $RESOURCES/patches-tested/kernel/*.patch; do patch -p1 < $i; done
|
for i in "$RESOURCES"/patches-tested/kernel/*.patch; do patch -p1 < $i; done
|
||||||
|
|
||||||
cd $ROOT_DIR
|
cd $ROOT_DIR
|
||||||
|
Loading…
Reference in New Issue
Block a user