From b757beef9b789085bcf1b01c8d0e0f4b5e4aeaaf Mon Sep 17 00:00:00 2001 From: Sauparna Gupta Date: Tue, 25 Jun 2024 12:56:40 +0530 Subject: [PATCH] chore: fixed the trasnform script for linux env --- scripts/transform-broken-keys.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/transform-broken-keys.sh b/scripts/transform-broken-keys.sh index 5689546..cad396f 100755 --- a/scripts/transform-broken-keys.sh +++ b/scripts/transform-broken-keys.sh @@ -1,8 +1,7 @@ #!/bin/bash set -e -cat $PWD/client/pacts/terraform-client-pactflow-application-saas.json | grep $.header -sed -i.bak -E "s/\$\.header\./\$\.headers\./g" "$PWD/client/pacts/terraform-client-pactflow-application-saas.json" -cat $PWD/client/pacts/terraform-client-pactflow-application-saas.json | grep $.header + +sed -i -E 's/\$\.header\./\$\.headers\./g' "$PWD/client/pacts/terraform-client-pactflow-application-saas.json" echo "Done..." \ No newline at end of file