refactor: improve scripts/run-{tool,agent}.sh (#97)

This commit is contained in:
sigoden
2024-08-17 08:38:21 +08:00
committed by GitHub
parent 072527fa1e
commit 9a2398fc77
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ def to_args:
[ to_args ] | join(" ")
EOF
)"
args="$(echo "$tool_data" | jq -r "$jq_script")" || {
args="$(echo "$tool_data" | jq -r "$jq_script" 2>/dev/null)" || {
die "Invalid JSON data"
}