ci: Fix shellcheck warnings in firmware download

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 0441202d6b ("ci: add firmware files to rootfs")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30978>
This commit is contained in:
Daniel Stone
2024-09-02 12:25:06 +01:00
committed by Marge Bot
parent 9937ea5c1c
commit 5aea59c37e
2 changed files with 5 additions and 1 deletions

View File

@@ -1,10 +1,13 @@
#!/usr/bin/env bash
# shellcheck disable=SC2046 # we want to arg-split FIRMWARE_FILES
# shellcheck disable=SC2086 # as above
# shellcheck disable=SC2116 # as above
set -e
ROOTFS=$1
FIRMWARE_FILES=$2
FIRMWARE=$(jq -s '.' $FIRMWARE_FILES)
FIRMWARE=$(jq -s '.' $(echo "$FIRMWARE_FILES"))
if [ -z "$FIRMWARE" ] || [ "$(echo "$FIRMWARE" | jq '. | length')" -eq 0 ]; then
echo "FIRMWARE is not set or is empty."

View File

@@ -2,6 +2,7 @@
# shellcheck disable=SC1091 # The relative paths in this file only become valid at runtime.
# shellcheck disable=SC2034 # Variables are used in scripts called from here
# shellcheck disable=SC2086 # we want word splitting
# shellcheck disable=SC2016 # non-expanded variables are intentional
# When changing this file, you need to bump the following
# .gitlab-ci/image-tags.yml tags:
# KERNEL_ROOTFS_TAG