Skip to content

Commit

Permalink
refactor: improve scripts/run-{tool,agent}.sh (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigoden authored Aug 17, 2024
1 parent 072527f commit 9a2398f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/run-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def to_args:
[ to_args ] | join(" ")
EOF
)"
args="$(echo "$agent_data" | jq -r "$jq_script")" || {
args="$(echo "$agent_data" | jq -r "$jq_script" 2>/dev/null)" || {
die "Invalid JSON data"
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/run-tool.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down

0 comments on commit 9a2398f

Please sign in to comment.