Merge pull request #10 from AikidoSec/fix-bug-in-teardown

Fix bug in teardown: missing argument
This commit is contained in:
bitterpanda 2025-07-18 13:06:36 +00:00 committed by GitHub
commit f074750ccb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
} }