From d0177e870ded09bde1c6b39ebbe305bec57dc408 Mon Sep 17 00:00:00 2001 From: Ing Date: Wed, 1 Jan 2025 12:21:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/modules.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index ddf9c85..ec2779b 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -90,13 +90,14 @@ jobs: SOURCE=/tmp/linux-firmware git clone --depth=1 https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git ${SOURCE} while read L; do + [ -z "${L}" ] && continue if [ -e "${SOURCE}/${L}" ]; then mkdir -p "$(dirname output/firmware/${L})" - cp "${SOURCE}/${L}" "output/firmware/${L}" + cp -f "${SOURCE}/${L}" "output/firmware/${L}" else [ ! -e "output/firmware/${L}" ] && echo "Missing ${L}" fi - done < <(find output/modules/${KVER}-qnap -name \*.ko -exec sh -c '/sbin/modinfo {} | grep ^firmware' \; | awk '{print $2}') + done <<<$(find output/modules/${KVER}-qnap -name \*.ko -exec sh -c 'modinfo {} | grep ^firmware' \; | awk '{print $2}') - name: Tar to Artifacts run: |