From 59fe32ac42c7fa784e692386dd590d38ad93d4b4 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 29 Jun 2024 06:53:25 +0800 Subject: [PATCH] fix: tools/save_file.sh (#52) --- tools/save_file.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/save_file.sh b/tools/save_file.sh index c51079f..f2d14d0 100755 --- a/tools/save_file.sh +++ b/tools/save_file.sh @@ -7,8 +7,8 @@ set -e main() { base_dir="${LLM_TOOL_CACHE_DIR:-/tmp}" - mkdir -p "$base_dir" output_file="$base_dir/$argc_file_name" + mkdir -p "$(dirname "$output_file")" echo "$argc_contents" > "$output_file" echo "$output_file" }