use (&& echo)
@@ -33,7 +33,8 @@ 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 }}" } & echo. & echo.terraform { & echo.required_providers { & echo.{{ provider|lower }} = { & echo.source="elastic/ec" & echo.version="{{ version }}" & echo.} & echo.} & echo.} > init.tif # [win]
+ - (echo provider "{{ provider|lower }}" { version="{{ version }}" } && echo "" && echo terraform { && echo required_providers { && echo {{ provider|lower }} = { && echo source="elastic/ec" && echo version="{{ version }}" && echo } &&
+ echo } && echo } ) > init.tf # [win]
# Initialize
- terraform init
