home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e66a008
)
Fix unused jobs variable
author
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:05 +0000
(12:46 -0400)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:05 +0000
(12:46 -0400)
home/bin/cargo-clean-all
patch
|
blob
|
blame
|
history
diff --git
a/home/bin/cargo-clean-all
b/home/bin/cargo-clean-all
index
fb3af47
..
2e5b02a
100755
(executable)
--- a/
home/bin/cargo-clean-all
+++ b/
home/bin/cargo-clean-all
@@
-6,8
+6,6
@@
main() {
local -r dir="${1-$HOME}"
local -r jobs="${1-$N_CPUS}"
- # XXX Just doing 'rm -rf' because 'cargo clean' starts doing extra work
- # and in some cases even downloads new deps, etc.
find "$dir" -type f -name Cargo.toml -print0 \
| xargs -0 -I % -P "$jobs" sh -c 'rm -rf $(dirname "%")/target'
}
This page took
0.028894 seconds
and
4
git commands to generate.