summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorshihaoyue <[email protected]>2024-07-19 05:51:04 +0800
committershihaoyue <[email protected]>2024-07-19 05:51:04 +0800
commit4b2145392581b37669b49f331cbeeb915b6582ab (patch)
tree972e5cc5eebdd3247b439ff9a17e189ceb3c49b9 /agent
parentf592e35dde68c5a2bca206188d84457abfca9efc (diff)
bugfix:根据脚本类型构建命令
Diffstat (limited to 'agent')
-rw-r--r--agent/apps/script.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/agent/apps/script.py b/agent/apps/script.py
index 03005bf..a3543bb 100644
--- a/agent/apps/script.py
+++ b/agent/apps/script.py
@@ -135,9 +135,9 @@ def execute():
# 根据脚本类型构建命令
if '.py' in script_path:
- command = f'python -u {script_path} {data.get('param')}'
+ command = f"python -u {script_path} {data.get('param')}"
elif '.go' in script_path:
- command = f'go run {script_path} {data.get('param')}'
+ command = f"go run {script_path} {data.get('param')}"
else:
return jsonify({'error': 'Unsupported script type'}), 400