From 3584b5c31f4f1f1baa1c350fa46a18752f8bf7c4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Thu, 12 Dec 2024 12:22:51 +0800 Subject: feat: support env var `LLM_DUMP_RESULTS` (#144) --- Argcfile.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Argcfile.sh') diff --git a/Argcfile.sh b/Argcfile.sh index 9863c29..c124434 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -28,7 +28,7 @@ run@tool() { fi lang="${argc_tool##*.}" cmd="$(_lang_to_cmd "$lang")" - run_tool_script="$PWD/scripts/run-tool.$lang" + run_tool_script="scripts/run-tool.$lang" [[ -n "$argc_cwd" ]] && cd "$argc_cwd" exec "$cmd" "$run_tool_script" "$argc_tool" "$argc_json" } @@ -52,7 +52,7 @@ run@agent() { tools_path="$(_get_agent_tools_path "$argc_agent")" lang="${tools_path##*.}" cmd="$(_lang_to_cmd "$lang")" - run_agent_script="$PWD/scripts/run-agent.$lang" + run_agent_script="scripts/run-agent.$lang" [[ -n "$argc_cwd" ]] && cd "$argc_cwd" exec "$cmd" "$run_agent_script" "$argc_agent" "$argc_action" "$argc_json" } @@ -163,7 +163,7 @@ build-declarations@tool() { build_failed_tools+=("$name") } if [[ "$json_data" == "null" ]]; then - _die "error: failed to build declartions for tool $name" + _die "error: failed to build declarations for tool $name" fi json_list+=("$json_data") done -- cgit v1.2.3