Skip to content

Commit daa2d85

Browse files
fix(windows): fix Brave policy PowerShell script
1 parent e37e84a commit daa2d85

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sample/Tests/test/test_windows_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,8 @@ def setup_autolaunch_protocol_policy():
896896
New-ItemProperty -Path $key -Name "AutoLaunchProtocolsFromOrigins" -PropertyType String -Value $json -Force | Out-Null
897897
Write-Host "Brave policy AutoLaunchProtocolsFromOrigins set at $key."
898898
}} catch {{
899-
Write-Host "Failed to set policy at $key: $($_.Exception.Message)"
899+
# NOTE: avoid "$key:" which PowerShell parses as a drive reference.
900+
Write-Host ("Failed to set policy at {0}: {1}" -f $key, $_.Exception.Message)
900901
}}
901902
}}
902903
'''

0 commit comments

Comments
 (0)