fix: scripts/run-*.sh load dotenv (#60)

This commit is contained in:
sigoden
2024-07-06 05:30:59 +08:00
committed by GitHub
parent a7834c98fc
commit 9b1f21c5a4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,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_TOOL_NAME="$tool_name"
export LLM_TOOL_CACHE_DIR="$LLM_ROOT_DIR/cache/$tool_name"