From 38654213e8a014af6c28651dfb0c666ce05d6e9a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Sun, 30 Mar 2025 13:44:57 -0700 Subject: [PATCH] fix script run --- modules/filemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filemon.py b/modules/filemon.py index 783d0b3..75372d4 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -76,7 +76,7 @@ def call_external_script(message, script="script/runShell.sh"): logger.warning(f"FileMon: Script not found: {script_path}") return "sorry I can't do that" - output = os.popen(f"bash {script_path} {message}", encoding='utf-8').read() + output = os.popen(f"bash {script_path} {message}").read().encode('utf-8').decode('utf-8') return output except Exception as e: logger.warning(f"FileMon: Error calling external script: {e}")