From d5706454e3b3323f827caf017d349a44b9194954 Mon Sep 17 00:00:00 2001 From: dandds Date: Fri, 9 Aug 2019 14:48:29 -0400 Subject: [PATCH] Fix newline issues in script/write_dotenv. In `sh` on Alpine Linux in our Docker images, the newline characters in the script were being interpreted as literals. This substitutes a HEREDOC instead. --- script/write_dotenv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script/write_dotenv b/script/write_dotenv index 680fad4d..0af8aa37 100755 --- a/script/write_dotenv +++ b/script/write_dotenv @@ -7,7 +7,11 @@ fi if [ $CSP = "aws" ]; then echo "CLOUD_PROVIDER=aws" > .env elif [ $CSP = "azure" ]; then - echo "CLOUD_PROVIDER=azure\nAZURE_ACCOUNT_NAME=atat\nAZURE_CONTAINER_NAME=task-order-pdfs" > .env + cat << EOF > .env +CLOUD_PROVIDER=azure +AZURE_ACCOUNT_NAME=atat +AZURE_CONTAINER_NAME=task-order-pdfs +EOF else echo "CLOUD_PROVIDER=mock" > .env fi