From d66d8938f1f845e92966835f70bc2f97ebb8246b Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 2 Aug 2024 23:26:49 +0800 Subject: feat: prompt confirmation for fs write operations outside cwd (#90) --- tools/fs_cat.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/fs_cat.sh') 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" "$@")" -- cgit v1.2.3