From 6f945d30d730077bba99c3328d1663d76e4b1e86 Mon Sep 17 00:00:00 2001 From: Daan Date: Thu, 27 Feb 2025 21:58:09 +0100 Subject: [PATCH] Hotfix in powershell checking code. --- meshbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshbook.py b/meshbook.py index 1669ea9..d91ba20 100644 --- a/meshbook.py +++ b/meshbook.py @@ -266,7 +266,7 @@ async def execute_meshbook(session: meshctrl.Session, targets: dict, meshbook: d for task in meshbook["tasks"]: console(text_color.green + str(round) + ". Running: " + task["name"]) - if meshbook["powershell"]: + if "powershell" in meshbook and meshbook["powershell"]: response = await session.run_command(nodeids=targets, command=task["command"],powershell=True,ignore_output=False,timeout=900) else: response = await session.run_command(nodeids=targets, command=task["command"],ignore_output=False,timeout=900)