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