8000 fix: add parenthesis · coder/modules@452f41a · 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 452f41a

Browse files
committed
fix: add parenthesis
1 parent 29209d5 commit 452f41a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

windows-rdp/main.tf

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ resource "coder_script" "windows-rdp" {
9393
$root = "C:\Program Files\Devolutions\Gateway\webapp\client"
9494
$devolutionsHtml = "$root\index.html"
9595
$patch = '<script defer id="coder-patch" src="coder.js"></script>'
96-
$isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch"
96+
< 7F9B /td>
9797
# Always copy the file in case we change it.
98-
"templatefile("${path.module}/devolutions-patch.js", {
98+
"${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"
102+
102103
# Only inject the src if we have not before.
104+
$isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch"
103105
if ($isPatched -eq $null) {
104106
(Get-Content $devolutionsHtml).Replace('</app-root>', "</app-root>$patch") | Set-Content $devolutionsHtml
105107
}

0 commit comments

Comments
 (0)
0