Created
September 3, 2019 09:08
-
-
Save flukejones/bdce369890ba55daf4fb5143fd5dd93c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ion | |
let pwd = @(pwd) | |
for dir in @split(@(exa -D)) | |
cd $pwd/$dir | |
echo -e "\nIn $pwd/$dir" | |
if test -f Cargo.toml && not test -f rust-toolchain | |
echo -e "Cleaning $dir" | |
cargo clean | |
end | |
for ndir in @split(@(exa -D)) | |
if test -f $ndir/Cargo.toml | |
cargo-recursive-clean | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment