mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Merge pull request #10 from AikidoSec/fix-bug-in-teardown
Fix bug in teardown: missing argument
This commit is contained in:
commit
f074750ccb
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import { ui } from "../environment/userInteraction.js";
|
import { ui } from "../environment/userInteraction.js";
|
||||||
import { detectShells } from "./shellDetection.js";
|
import { detectShells } from "./shellDetection.js";
|
||||||
|
import { knownAikidoTools } from "./helpers.js";
|
||||||
|
|
||||||
export async function teardown() {
|
export async function teardown() {
|
||||||
ui.writeInformation(
|
ui.writeInformation(
|
||||||
|
|
@ -26,7 +27,7 @@ export async function teardown() {
|
||||||
for (const shell of shells) {
|
for (const shell of shells) {
|
||||||
let success = false;
|
let success = false;
|
||||||
try {
|
try {
|
||||||
success = shell.teardown();
|
success = shell.teardown(knownAikidoTools);
|
||||||
} catch {
|
} catch {
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue