From b666473b6c3b6e2a6d93c705a706a5146a9cf99a Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 28 Jun 2024 22:51:30 +0000 Subject: [PATCH] fix: tools/save_file.sh --- 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" }