From 9b1f21c5a4b85a69867f6d7d4f23f379909ccee7 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 6 Jul 2024 05:30:59 +0800 Subject: fix: scripts/run-*.sh load dotenv (#60) --- scripts/run-tool.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/run-tool.sh') diff --git a/scripts/run-tool.sh b/scripts/run-tool.sh index 2ed01d5..4c89d53 100755 --- a/scripts/run-tool.sh +++ b/scripts/run-tool.sh @@ -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" -- cgit v1.2.3