Use base64 to preserve newlines
This commit is contained in:
parent
d401399c9f
commit
d60546d4c4
@ -99,10 +99,10 @@ resource "coder_app" "dotfiles" {
|
|||||||
icon = "/icon/dotfiles.svg"
|
icon = "/icon/dotfiles.svg"
|
||||||
order = var.order
|
order = var.order
|
||||||
group = var.group
|
group = var.group
|
||||||
command = "/bin/bash -c ${jsonencode(templatefile("${path.module}/run.sh", {
|
command = "/bin/bash -c \"$(echo ${base64encode(templatefile("${path.module}/run.sh", {
|
||||||
DOTFILES_URI : local.dotfiles_uri,
|
DOTFILES_URI : local.dotfiles_uri,
|
||||||
DOTFILES_USER : local.user
|
DOTFILES_USER : local.user
|
||||||
}))}"
|
}))} | base64 -d)\""
|
||||||
}
|
}
|
||||||
|
|
||||||
output "dotfiles_uri" {
|
output "dotfiles_uri" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user