Merge branch 'feat/dynamic-install-dir' of github.com:AikidoSec/safe-chain into feat/dynamic-install-dir

This commit is contained in:
Reinier Criel 2026-04-10 15:27:16 -07:00
commit ccd595fc22
3 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ function teardown(tools) {
);
}
// Removes the line that sources the safe-chain bash initialization script (any path, requires safe-chain comment)
// Marker comment ensures only safe-chain-added lines are removed, not user's own source statements
removeLinesMatchingPattern(
startupFile,
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,

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(
startupFile,
/^\.\s+["']?.*init-pwsh\.ps1["']?.*#\s*Safe-chain/,

View file

@ -34,7 +34,7 @@ function teardown(tools) {
);
}
// Removes the line that sources the safe-chain zsh initialization script (any path, requires safe-chain comment)
// Remove init script source line to uninstall shell integration; marker ensures only safe-chain-added lines are removed
removeLinesMatchingPattern(
startupFile,
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,