From 23055ff932755d157311be8afbf29a115634b726 Mon Sep 17 00:00:00 2001 From: Edward Viaene Date: Wed, 25 Mar 2020 14:09:32 +0100 Subject: [PATCH] try fix to remove CR chars --- demo-2/instance.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-2/instance.tf b/demo-2/instance.tf index 097a29f..f75113a 100644 --- a/demo-2/instance.tf +++ b/demo-2/instance.tf @@ -15,6 +15,7 @@ resource "aws_instance" "example" { provisioner "remote-exec" { inline = [ "chmod +x /tmp/script.sh", + "sudo sed -i -e 's/\r$//' /tmp/script.sh", # Remove the spurious CR characters. "sudo /tmp/script.sh", ] }