aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/run-agent.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-16 11:09:40 +0800
committerGitHub <noreply@github.com>2024-11-16 11:09:40 +0800
commit86aa9106090a0219bac30bc12f5a5bd91949afd9 (patch)
tree69aef8c03242c67480c4edfe42a2cbf4c785b466 /scripts/run-agent.sh
parent6d30c22b82a5ac1a5775d8137c3b08a581770273 (diff)
downloadllm-functions-docker-86aa9106090a0219bac30bc12f5a5bd91949afd9.tar.gz
refactor: improve bash code (#125)
* refactor: extract guard_path to utils/guard_path.sh * add utils/guard_operation.sh
Diffstat (limited to 'scripts/run-agent.sh')
-rwxr-xr-xscripts/run-agent.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/run-agent.sh b/scripts/run-agent.sh
index 0b6ed47..dc11e58 100755
--- a/scripts/run-agent.sh
+++ b/scripts/run-agent.sh
@@ -53,7 +53,7 @@ load_env() {
run() {
if [[ -z "$agent_data" ]]; then
- die "No JSON data"
+ die "error: no JSON data"
fi
if [[ "$OS" == "Windows_NT" ]]; then
@@ -81,7 +81,7 @@ def to_args:
EOF
)"
args="$(echo "$agent_data" | jq -r "$jq_script" 2>/dev/null)" || {
- die "Invalid JSON data"
+ die "error: invalid JSON data"
}
no_llm_output=0