diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /bin/find-rust-target-dir | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/find-rust-target-dir')
| -rwxr-xr-x | bin/find-rust-target-dir | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/bin/find-rust-target-dir b/bin/find-rust-target-dir deleted file mode 100755 index b59a2b4..0000000 --- a/bin/find-rust-target-dir +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -is_rust_root() { - [ -f $1/Cargo.toml ] || return 1 - [ -d $1/target ] || return 1 - return 0 -} - -inspect() { - for dir in `fd -t d -d 1 '' "${1}"`; do - is_rust_root ${dir} && { echo ${dir}; du -h -d 0; echo -e "\n"; continue; } - inspect ${dir} - done -} - -inspect ${1:-$PWD} |