|
|
|
|
|
by ninkendo
2198 days ago
|
|
Yeah it looks like they wanted to know how long each crate took to build individually. But as long as we're nitpicking, nobody should just pipe `ls` into `xargs` like this, since it fails if anything has spaces in it. Instead, do: for cargo_toml in */Cargo.toml; do
crate="$(dirname "${cargo_toml}")"
pushd $crate
# ...
done
Don't be that person who writes a script which won't tolerate spaces in filenames! |
|