You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
packer/packer_test/provisioner_tests/shell/templates/shebang_as_option.pkr.hcl

18 lines
272 B

source "docker" "test" {
image = "debian:bookworm"
discard = true
}
build {
sources = ["docker.test"]
provisioner "shell" {
inline_shebang = "/bin/bash -ex"
inline = [
"#!/bin/sh",
"cat \"$0\" | head -1 | grep -qE '^#!/bin/bash'",
"cat \"$0\""
]
}
}