try multiple echos
@@ -33,7 +33,7 @@ test:
commands:
# Create a sample init.tf loading the provider. Set source namespace since different than default 'hashicorp/'
- echo -e 'provider "{{ provider|lower }}" { version="{{ version }}" }\n\nterraform {\n required_providers {\n {{ provider|lower }} = {\n source="elastic/ec"\n version="{{ version }}"\n }\n }\n }' > init.tf # [unix]
- - echo provider "{{ provider|lower }}" { version="{{ version }}" }$"\n"$"\n"terraform {$"\n" required_providers {$"\n" {{ provider|lower }} = {$"\n" source="elastic/ec"$"\n" version="{{ version }}"$"\n" }$"\n" }$"\n" } > init.tf # [win]
+ - ( echo provider "{{ provider|lower }}" { version="{{ version }}" } ; echo terraform { ; echo required_providers { ; echo {{ provider|lower }} = { ; echo source="elastic/ec" ; echo version="{{ version }}" ; echo } ; echo } ; echo } ) > init.tf # [win]
# Initialize
- terraform init
