mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Cleanup
This commit is contained in:
parent
1cf8fd1241
commit
d064d46668
32 changed files with 429 additions and 400 deletions
|
|
@ -69,8 +69,7 @@ function createUnixShims(shimsDir) {
|
|||
for (const toolInfo of getToolsToSetup()) {
|
||||
const shimContent = template
|
||||
.replaceAll("{{PACKAGE_MANAGER}}", toolInfo.tool)
|
||||
.replaceAll("{{AIKIDO_COMMAND}}", toolInfo.aikidoCommand)
|
||||
.replaceAll("{{SHIMS_DIR}}", shimsDir);
|
||||
.replaceAll("{{AIKIDO_COMMAND}}", toolInfo.aikidoCommand);
|
||||
|
||||
const shimPath = path.join(shimsDir, toolInfo.tool);
|
||||
fs.writeFileSync(shimPath, shimContent, "utf-8");
|
||||
|
|
@ -109,8 +108,7 @@ function createWindowsShims(shimsDir) {
|
|||
for (const toolInfo of getToolsToSetup()) {
|
||||
const shimContent = template
|
||||
.replaceAll("{{PACKAGE_MANAGER}}", toolInfo.tool)
|
||||
.replaceAll("{{AIKIDO_COMMAND}}", toolInfo.aikidoCommand)
|
||||
.replaceAll("{{SHIMS_DIR}}", shimsDir);
|
||||
.replaceAll("{{AIKIDO_COMMAND}}", toolInfo.aikidoCommand);
|
||||
|
||||
const shimPath = `${shimsDir}/${toolInfo.tool}.cmd`;
|
||||
fs.writeFileSync(shimPath, shimContent, "utf-8");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue