Update filemon.py

This commit is contained in:
SpudGunMan
2024-12-23 13:16:11 -08:00
parent 49c098ef0b
commit 30d2b996c0
+1 -1
View File
@@ -72,7 +72,7 @@ def call_external_script(message, script="runShell.sh"):
if not os.path.exists(script_path):
logger.warning(f"FileMon: Script not found: {script_path}")
return "sorry I can't do that"
output = os.popen(f"bash {script_path}").read()
output = os.popen(f"bash {script_path} {message}").read()
return output
except Exception as e:
logger.warning(f"FileMon: Error calling external script: {e}")