Fix unused jobs variable
authorSiraaj Khandkar <siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:05 +0000 (12:46 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Wed, 19 Apr 2023 16:46:05 +0000 (12:46 -0400)
home/bin/cargo-clean-all

index fb3af47..2e5b02a 100755 (executable)
@@ -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.