diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-06 05:30:59 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-06 05:30:59 +0800 |
| commit | 9b1f21c5a4b85a69867f6d7d4f23f379909ccee7 (patch) | |
| tree | 00b418d4bbd5c07c125909042ae9481b2fa10dfb /scripts/run-agent.sh | |
| parent | a7834c98fcbe491c59ab4b0689380fd84596f5ee (diff) | |
| download | llm-functions-docker-9b1f21c5a4b85a69867f6d7d4f23f379909ccee7.tar.gz | |
fix: scripts/run-*.sh load dotenv (#60)
Diffstat (limited to 'scripts/run-agent.sh')
| -rwxr-xr-x | scripts/run-agent.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run-agent.sh b/scripts/run-agent.sh index 0bc2ecd..967efa5 100755 --- a/scripts/run-agent.sh +++ b/scripts/run-agent.sh @@ -28,7 +28,7 @@ parse_argv() { setup_env() { export LLM_ROOT_DIR="$root_dir" if [[ -f "$LLM_ROOT_DIR/.env" ]]; then - source "$LLM_ROOT_DIR/.env" + set -o allexport && source "$LLM_ROOT_DIR/.env" && set +o allexport fi export LLM_AGENT_NAME="$agent_name" export LLM_AGENT_ROOT_DIR="$LLM_ROOT_DIR/agents/$agent_name" |
