diff options
Diffstat (limited to 'tools/fs_rm.sh')
| -rwxr-xr-x | tools/fs_rm.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/fs_rm.sh b/tools/fs_rm.sh new file mode 100755 index 0000000..3d84fe8 --- /dev/null +++ b/tools/fs_rm.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +set -e + +# @describe Remove the file or directory at the specified path. + +# @env FS_BASE_DIR=. The base dir +# @option --path! The path of the file or directory to remove + +main() { + path="$FS_BASE_DIR/$argc_path" + rm -rf "$path" + echo "Path removed: $path" +} + +eval "$(argc --argc-eval "$0" "$@")" |
