From fba0f842a9e7c4badbff6a9d3f1e21c85d428978 Mon Sep 17 00:00:00 2001 From: Parkreiner Date: Mon, 24 Jun 2024 21:47:01 +0000 Subject: [PATCH] fix: remove regex search from Select-String --- windows-rdp/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows-rdp/main.tf b/windows-rdp/main.tf index 7d95ec2..9e1d8fb 100644 --- a/windows-rdp/main.tf +++ b/windows-rdp/main.tf @@ -103,7 +103,7 @@ ${templatefile("${path.module}/devolutions-patch.js", { '@ | Set-Content "$root\coder.js" # Only inject the src if we have not before. - $isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch" + $isPatched = Select-String -Path "$devolutionsHtml" -Pattern "$patch" -SimpleMatch if ($isPatched -eq $null) { (Get-Content $devolutionsHtml).Replace('', "$patch") | Set-Content $devolutionsHtml }