From 34ff2db5f74a8f9e8478fd642275e9fb907fabf8 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 25 May 2023 17:45:55 -0400 Subject: [PATCH] Correct chromium path found in Windows Signed-off-by: Peter Zhu --- packer/scripts/windows/scoop-install-commons.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packer/scripts/windows/scoop-install-commons.ps1 b/packer/scripts/windows/scoop-install-commons.ps1 index 80ad1586..4ff3365b 100644 --- a/packer/scripts/windows/scoop-install-commons.ps1 +++ b/packer/scripts/windows/scoop-install-commons.ps1 @@ -158,7 +158,7 @@ $chromiumName = 'chrome.exe' $chromiumDir = 'C:\\Users\\Administrator\\scoop\\apps\\chromium' $chromiumFound = (Get-ChildItem -Path $chromiumDir -Filter $chromiumName -Recurse | %{$_.FullName} | select -first 1) $chromiumFound -$chromiumPathFound = $chromiumPathFound.replace("$chromiumName", '') +$chromiumPathFound = $chromiumFound.replace("$chromiumName", '') $chromiumPathFound # Add BROWSER_PATH path to User Env Var for cypress test to retrieve chromium.exe path [System.Environment]::SetEnvironmentVariable("BROWSER_PATH", "$chromiumPathFound", [System.EnvironmentVariableTarget]::User)