8000 fix: remove regex search from Select-String · coder/modules@fba0f84 · 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 fba0f84

Browse files
committed
fix: remove regex search from Select-String
1 parent 14e3fc5 commit fba0f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows-rdp/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ ${templatefile("${path.module}/devolutions-patch.js", {
103103
'@ | Set-Content "$root\coder.js"
104104
105105
# Only inject the src if we have not before.
106-
$isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch"
106+
$isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch" -SimpleMatch
107107
if ($isPatched -eq $null) {
108108
(Get-Content $devolutionsHtml).Replace('</app-root>', "</app-root>$patch") | Set-Content $devolutionsHtml
109109
}

0 commit comments

Comments
 (0)
0