mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 20:20:49 +00:00
Merge branch 'feat/dynamic-install-dir' of github.com:AikidoSec/safe-chain into feat/dynamic-install-dir
This commit is contained in:
commit
ccd595fc22
3 changed files with 3 additions and 3 deletions
|
|
@ -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(
|
removeLinesMatchingPattern(
|
||||||
startupFile,
|
startupFile,
|
||||||
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,
|
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,
|
||||||
|
|
|
||||||
|
|
@ -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/,
|
||||||
|
|
|
||||||
|
|
@ -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(
|
removeLinesMatchingPattern(
|
||||||
startupFile,
|
startupFile,
|
||||||
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,
|
/^source\s+.*init-posix\.sh.*#\s*Safe-chain/,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue