Update packages/safe-chain/src/shell-integration/supported-shells/windowsPowershell.js

Co-authored-by: aikido-pr-checks[bot] <169896070+aikido-pr-checks[bot]@users.noreply.github.com>
This commit is contained in:
Reinier Criel 2026-04-10 15:21:05 -07:00 committed by GitHub
parent 8cf41dc4a6
commit e5c79e5bd6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ function teardown(tools) {
); );
} }
// Remove the line that sources the safe-chain PowerShell initialization script (any path, requires safe-chain comment) // Match any installation path but require the Safe-chain marker to avoid removing unrelated user scripts
removeLinesMatchingPattern( removeLinesMatchingPattern(
startupFile, startupFile,
/^\.\s+["']?.*init-pwsh\.ps1["']?.*#\s*Safe-chain/, /^\.\s+["']?.*init-pwsh\.ps1["']?.*#\s*Safe-chain/,