aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fs_cat.sh
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-08-02 23:26:49 +0800
committerGitHub <noreply@github.com>2024-08-02 23:26:49 +0800
commitd66d8938f1f845e92966835f70bc2f97ebb8246b (patch)
treee81b6da5ff07f1aeaa1799a314f7850c89e97d1c /tools/fs_cat.sh
parentf5c67b3eff5925e35379760d57f886f705120158 (diff)
downloadllm-functions-docker-d66d8938f1f845e92966835f70bc2f97ebb8246b.tar.gz
feat: prompt confirmation for fs write operations outside cwd (#90)
Diffstat (limited to 'tools/fs_cat.sh')
-rwxr-xr-xtools/fs_cat.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/fs_cat.sh b/tools/fs_cat.sh
index bec9a12..37fe5dc 100755
--- a/tools/fs_cat.sh
+++ b/tools/fs_cat.sh
@@ -4,12 +4,10 @@ set -e
# @describe Read the contents of a file at the specified path.
# Use this when you need to examine the contents of an existing file.
-# @env FS_BASE_DIR=. The base dir
# @option --path! The path of the file to read
main() {
- path="$FS_BASE_DIR/$argc_path"
- cat "$path" >> "$LLM_OUTPUT"
+ cat "$argc_path" >> "$LLM_OUTPUT"
}
eval "$(argc --argc-eval "$0" "$@")"