8000 fix: dolla dolla · coder/modules@c7aa825 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit c7aa825

Browse files
committed
fix: dolla dolla
1 parent 452f41a commit c7aa825

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows-rdp/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ resource "coder_script" "windows-rdp" {
9595
$patch = '<script defer id="coder-patch" src="coder.js"></script>'
9696
9797
# Always copy the file in case we change it.
98-
"${templatefile("${path.module}/devolutions-patch.js", {
98+
"${replace(templatefile("${path.module}/devolutions-patch.js", {
9999
CODER_USERNAME : var.admin_username,
100100
CODER_PASSWORD : var.admin_password,
101-
})}" | Set-Content "$root\coder.js"
101+
}), "$", "\\$")}" | Set-Content "$root\coder.js"
102102
103103
# Only inject the src if we have not before.
104104
$isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch"

0 commit comments

Comments
 (0)
0