mirror of
https://github.com/farcasclaudiu/terraform-course.git
synced 2026-06-22 05:01:55 +03:00
try fix to remove CR chars
This commit is contained in:
@@ -15,6 +15,7 @@ resource "aws_instance" "example" {
|
|||||||
provisioner "remote-exec" {
|
provisioner "remote-exec" {
|
||||||
inline = [
|
inline = [
|
||||||
"chmod +x /tmp/script.sh",
|
"chmod +x /tmp/script.sh",
|
||||||
|
"sudo sed -i -e 's/\r$//' /tmp/script.sh", # Remove the spurious CR characters.
|
||||||
"sudo /tmp/script.sh",
|
"sudo /tmp/script.sh",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user