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_ls.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tools/fs_ls.sh') diff --git a/tools/fs_ls.sh b/tools/fs_ls.sh index f288f77..c7deb40 100755 --- a/tools/fs_ls.sh +++ b/tools/fs_ls.sh @@ -3,12 +3,10 @@ set -e # @describe List all files and directories at the specified path. -# @env FS_BASE_DIR=. The base dir # @option --path! The path of the directory to list main() { - path="$FS_BASE_DIR/$argc_path" - ls -1 "$path" >> "$LLM_OUTPUT" + ls -1 "$argc_path" >> "$LLM_OUTPUT" } eval "$(argc --argc-eval "$0" "$@")" -- cgit v1.2.3