mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 03:01:53 +03:00
try fix to remove CR chars
This commit is contained in:
@@ -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",
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user