diff --git a/mesh_bot.py b/mesh_bot.py index b0e29fe..e079566 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -772,7 +772,7 @@ def sysinfo(message, message_from_id, deviceID): return "sysinfo command returns system information." else: if enable_runShellCmd and file_monitor_enabled: - shellData = call_external_script(None, "sysEnv.sh").rstrip() + shellData = call_external_script(None, "script/sysEnv.sh").rstrip() return get_sysinfo(message_from_id, deviceID) + "\n" + shellData else: return get_sysinfo(message_from_id, deviceID) diff --git a/modules/filemon.py b/modules/filemon.py index d309b96..41cd3c2 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -63,7 +63,7 @@ async def watch_file(): return content await asyncio.sleep(1) # Check every -def call_external_script(message, script="runShell.sh"): +def call_external_script(message, script="script/runShell.sh"): try: # Debugging: Print the current working directory and resolved script path current_working_directory = os.getcwd() diff --git a/runShell.sh b/script/runShell.sh similarity index 100% rename from runShell.sh rename to script/runShell.sh diff --git a/sysEnv.sh b/script/sysEnv.sh similarity index 100% rename from sysEnv.sh rename to script/sysEnv.sh