diff options
| author | sigoden <sigoden@gmail.com> | 2024-07-05 21:07:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-05 21:07:40 +0800 |
| commit | a7834c98fcbe491c59ab4b0689380fd84596f5ee (patch) | |
| tree | 34b5b8b633cf0f63e35f3a96e25ed54b36906be5 /tools/fs_mkdir.sh | |
| parent | 74789b5a72cd8e3261f196f4e7197ddba92947d0 (diff) | |
| download | llm-functions-docker-a7834c98fcbe491c59ab4b0689380fd84596f5ee.tar.gz | |
feat: add fs tools (#59)
Diffstat (limited to 'tools/fs_mkdir.sh')
| -rwxr-xr-x | tools/fs_mkdir.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/fs_mkdir.sh b/tools/fs_mkdir.sh new file mode 100755 index 0000000..7a7e71f --- /dev/null +++ b/tools/fs_mkdir.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +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" +} + +eval "$(argc --argc-eval "$0" "$@")" |
