Shell Script to set variable

PHOTO EMBED

Wed Aug 03 2022 14:33:44 GMT+0000 (UTC)

Saved by @MattMoniz #bash

branchName=$(git branch --show-current)
baseURL="https://$branchName-bmc-org.pantheonsite.io/"
npx percy exec -- cypress run --config baseUrl=$baseURL
content_copyCOPY