diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-29 06:53:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 06:53:25 +0800 |
| commit | 59fe32ac42c7fa784e692386dd590d38ad93d4b4 (patch) | |
| tree | e15101bfad9cd472318d7ef08f268c2ca0ab82a6 /tools/save_file.sh | |
| parent | f7f009b1da01b6065d8be153606c23dd6e674645 (diff) | |
| download | llm-functions-docker-59fe32ac42c7fa784e692386dd590d38ad93d4b4.tar.gz | |
fix: tools/save_file.sh (#52)
Diffstat (limited to 'tools/save_file.sh')
| -rwxr-xr-x | tools/save_file.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" } |
