From c7aa8253e3a366401a60eaadf51fdd0efc3c4fec Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Mon, 24 Jun 2024 20:22:25 +0000 Subject: [PATCH] fix: dolla dolla --- windows-rdp/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows-rdp/main.tf b/windows-rdp/main.tf index a098669..594d79f 100644 --- a/windows-rdp/main.tf +++ b/windows-rdp/main.tf @@ -95,10 +95,10 @@ resource "coder_script" "windows-rdp" { $patch = '' # Always copy the file in case we change it. - "${templatefile("${path.module}/devolutions-patch.js", { + "${replace(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"