Use single quote in yq command

This commit is contained in:
sian1468 2023-09-10 14:26:02 +07:00
parent 3aeb0007f5
commit 4b27a13eeb
No known key found for this signature in database
GPG Key ID: 7DBCA5E9B2E932EB

View File

@ -61,7 +61,7 @@ jobs:
# searx update
# ==============================================================
curl -s https://raw.githubusercontent.com/searx/searx-instances/master/searxinstances/instances.yml | \
yq -o=json "keys | sort" > searx-tmp.json
yq -o=json 'keys | sort' > searx-tmp.json
jq --slurpfile searx searx-tmp.json \
'( .[] | select(.type == "searx") )
.instances |= $searx[0]' services-full.json > services-tmp.json