mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-21 11:17:00 +01:00
fix: Modify jq syntax to fix false positive from checkbashisms
This commit is contained in:
parent
370def39ce
commit
171871b687
@ -134,7 +134,7 @@ get_online_iso() {
|
|||||||
# Download available operating systems, filter to to those that match requirements
|
# 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
|
# Remove entries with more than 1 ISO or any other medium, they could cause issues
|
||||||
OS_JSON="$(curl -L -s "$CONFIGURATION_URL" | jq -c "[.[] | \
|
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 (.iso | length == 1) and (.iso[0] | has(\"web\")) \
|
||||||
and .img == null and .fixed_iso == null and .floppy == null and .disk_images == null)) \
|
and .img == null and .fixed_iso == null and .floppy == null and .disk_images == null)) \
|
||||||
| select(.releases | length > 0)]")"
|
| select(.releases | length > 0)]")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user