From d60546d4c436c506a431a0f4df1521048aa680dd Mon Sep 17 00:00:00 2001 From: Koury Lape Date: Thu, 29 Jan 2026 14:36:43 -0500 Subject: [PATCH] Use base64 to preserve newlines --- registry/coder/modules/dotfiles/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/dotfiles/main.tf b/registry/coder/modules/dotfiles/main.tf index fbf395df..5b0c656c 100644 --- a/registry/coder/modules/dotfiles/main.tf +++ b/registry/coder/modules/dotfiles/main.tf @@ -99,10 +99,10 @@ resource "coder_app" "dotfiles" { icon = "/icon/dotfiles.svg" order = var.order 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_USER : local.user - }))}" + }))} | base64 -d)\"" } output "dotfiles_uri" {