fix: scripts/run-*.sh load dotenv (#60)
This commit is contained in:
@@ -28,7 +28,7 @@ parse_argv() {
|
|||||||
setup_env() {
|
setup_env() {
|
||||||
export LLM_ROOT_DIR="$root_dir"
|
export LLM_ROOT_DIR="$root_dir"
|
||||||
if [[ -f "$LLM_ROOT_DIR/.env" ]]; then
|
if [[ -f "$LLM_ROOT_DIR/.env" ]]; then
|
||||||
source "$LLM_ROOT_DIR/.env"
|
set -o allexport && source "$LLM_ROOT_DIR/.env" && set +o allexport
|
||||||
fi
|
fi
|
||||||
export LLM_AGENT_NAME="$agent_name"
|
export LLM_AGENT_NAME="$agent_name"
|
||||||
export LLM_AGENT_ROOT_DIR="$LLM_ROOT_DIR/agents/$agent_name"
|
export LLM_AGENT_ROOT_DIR="$LLM_ROOT_DIR/agents/$agent_name"
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ parse_argv() {
|
|||||||
setup_env() {
|
setup_env() {
|
||||||
export LLM_ROOT_DIR="$root_dir"
|
export LLM_ROOT_DIR="$root_dir"
|
||||||
if [[ -f "$LLM_ROOT_DIR/.env" ]]; then
|
if [[ -f "$LLM_ROOT_DIR/.env" ]]; then
|
||||||
source "$LLM_ROOT_DIR/.env"
|
set -o allexport && source "$LLM_ROOT_DIR/.env" && set +o allexport
|
||||||
fi
|
fi
|
||||||
export LLM_TOOL_NAME="$tool_name"
|
export LLM_TOOL_NAME="$tool_name"
|
||||||
export LLM_TOOL_CACHE_DIR="$LLM_ROOT_DIR/cache/$tool_name"
|
export LLM_TOOL_CACHE_DIR="$LLM_ROOT_DIR/cache/$tool_name"
|
||||||
|
|||||||
Reference in New Issue
Block a user