jq 1.5 multiple bash variables as argument
问题 I'm working on a script for my openwrt, a watchdog for my pia connection. I'm trying to make this little jq filter but every time I try I get error I've more options and I "compose" the jq filter all_region_data=$(curl -s "https://serverlist.piaservers.net/vpninfo/servers/v4" | head -1) BestRegion="italy" jq_filter='.regions[]' if [ -z "$BestRegion" ]; then # BestRegion not forced if [ "$pia_pf" = "true" ]; then jq_filter="${jq_filter} | select(.port_forward==true)" fi if [ "$pia_no_geo" =