From: Siraaj Khandkar Date: Wed, 19 Apr 2023 16:46:05 +0000 (-0400) Subject: Fix unused jobs variable X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=529e362aa4b6a7c887074a9b1906e4341e7e101f;p=khome.git Fix unused jobs variable --- diff --git a/home/bin/cargo-clean-all b/home/bin/cargo-clean-all index fb3af47..2e5b02a 100755 --- 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' }