From 0b6975c266c3f280576b354d46bf439f2bb273ed Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Mon, 24 Jun 2024 20:41:45 +0000 Subject: [PATCH] fix: escape quotes --- windows-rdp/main.tf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows-rdp/main.tf b/windows-rdp/main.tf index a098669..dafae70 100644 --- a/windows-rdp/main.tf +++ b/windows-rdp/main.tf @@ -95,10 +95,12 @@ resource "coder_script" "windows-rdp" { $patch = '' # Always copy the file in case we change it. - "${templatefile("${path.module}/devolutions-patch.js", { + @' + ${templatefile("${path.module}/devolutions-patch.js", { CODER_USERNAME : var.admin_username, CODER_PASSWORD : var.admin_password, - })}" | Set-Content "$root\coder.js" + })} + '@ | Set-Content "$root\coder.js" # Only inject the src if we have not before. $isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch"