aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fs_write.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-14 21:54:44 +0800
committerGitHub <noreply@github.com>2024-11-14 21:54:44 +0800
commit1b96d4ee4cadf05163d653373423a615723240aa (patch)
treeb528d9e7791a2ed1ca8ce36098eec7c160200613 /tools/fs_write.sh
parentafbd03f963b08419a3835c9473d757bf936c8b92 (diff)
downloadllm-functions-docker-1b96d4ee4cadf05163d653373423a615723240aa.tar.gz
feat: add `LLM_OUTPUT=/dev/stdout` to all tools/agents bashscripts (#123)
Diffstat (limited to 'tools/fs_write.sh')
-rwxr-xr-xtools/fs_write.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/fs_write.sh b/tools/fs_write.sh
index b37a2d5..bdf8e85 100755
--- a/tools/fs_write.sh
+++ b/tools/fs_write.sh
@@ -9,6 +9,8 @@ set -e
# @option --path! The path of the file to write to
# @option --contents! The full contents to write to the file
+# @env LLM_OUTPUT=/dev/stdout The output path
+
main() {
_guard_path "$argc_path" Write
mkdir -p "$(dirname "$argc_path")"