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_mkdir.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools/fs_mkdir.sh') diff --git a/tools/fs_mkdir.sh b/tools/fs_mkdir.sh index 79d853a..8305f10 100755 --- a/tools/fs_mkdir.sh +++ b/tools/fs_mkdir.sh @@ -3,13 +3,11 @@ set -e # @describe Create a new directory at the specified path. -# @env FS_BASE_DIR=. The base dir # @option --path! The path of the directory to create main() { - path="$FS_BASE_DIR/$argc_path" - mkdir -p "$path" - echo "Directory created: $path" >> "$LLM_OUTPUT" + mkdir -p "$argc_path" + echo "Directory created: $argc_path" >> "$LLM_OUTPUT" } eval "$(argc --argc-eval "$0" "$@")" -- cgit v1.2.3