try fix to remove CR chars

This commit is contained in:
Edward Viaene
2020-03-25 14:09:32 +01:00
parent 9586c7f64c
commit 23055ff932
+1
View File
@@ -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",
]
}