diff options
| author | sigoden <sigoden@gmail.com> | 2024-08-02 23:26:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-02 23:26:49 +0800 |
| commit | d66d8938f1f845e92966835f70bc2f97ebb8246b (patch) | |
| tree | e81b6da5ff07f1aeaa1799a314f7850c89e97d1c /tools/fs_ls.sh | |
| parent | f5c67b3eff5925e35379760d57f886f705120158 (diff) | |
| download | llm-functions-docker-d66d8938f1f845e92966835f70bc2f97ebb8246b.tar.gz | |
feat: prompt confirmation for fs write operations outside cwd (#90)
Diffstat (limited to 'tools/fs_ls.sh')
| -rwxr-xr-x | tools/fs_ls.sh | 4 |
1 files changed, 1 insertions, 3 deletions
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" "$@")" |
