From 171871b6872642f2056915378a9e2251159da207 Mon Sep 17 00:00:00 2001 From: Liam <33645555+lj3954@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:01:42 -0700 Subject: [PATCH] fix: Modify jq syntax to fix false positive from checkbashisms --- core/tabs/utils/create-bootable-usb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tabs/utils/create-bootable-usb.sh b/core/tabs/utils/create-bootable-usb.sh index 055b8558..c9efca27 100644 --- a/core/tabs/utils/create-bootable-usb.sh +++ b/core/tabs/utils/create-bootable-usb.sh @@ -134,7 +134,7 @@ get_online_iso() { # Download available operating systems, filter to to those that match requirements # Remove entries with more than 1 ISO or any other medium, they could cause issues OS_JSON="$(curl -L -s "$CONFIGURATION_URL" | jq -c "[.[] | \ - .releases |= map(select((.arch // \"x86_64\") == "\"${ARCH}\"" \ + .releases |= map(select(.arch // \"x86_64\" == "\"${ARCH}\"" \ and (.iso | length == 1) and (.iso[0] | has(\"web\")) \ and .img == null and .fixed_iso == null and .floppy == null and .disk_images == null)) \ | select(.releases | length > 0)]")"