zrhoffman commented on code in PR #7440: URL: https://github.com/apache/trafficcontrol/pull/7440#discussion_r1161852726
########## infrastructure/cdn-in-a-box/traffic_portal_v2_e2e_test/run.sh: ########## @@ -50,12 +50,12 @@ fi; cd /lang/traffic-portal -sed -i 's@launch_url: .*,$@launch_url: "'"$TP_URL"'",@' nightwatch/nightwatch.conf.js -sed -i 's@trafficOpsURL: .*,$@trafficOpsURL: "https://'"$TO_FQDN"':'"$TO_PORT"'",@' nightwatch/globals/globals.ts +jq '.tp_url = "'"$TP_URL"'" | .to_url = "https://'"$TO_FQDN"':'"$TO_PORT"'"' \ Review Comment: `jq` args let you avoid bash variable expansion within the jq filter. Something like this: ```shell jq --arg TP_URL "$TP_URL" --arg TO_URL "https://$TO_FQDN:$TO_PORT" '.tp_url = $TP_URL | .to_url = $TO_URL' ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
