refactor: improve scripts/run-{tool,agent}.sh (#97)
This commit is contained in:
1 parent
072527fa1e
commit
9a2398fc77
2 files changed
+2
-2
No files matched your search
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user