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
#!/bin/bash | |
# This a simple bash script to run `cargo clean` recursively. | |
# | |
# Usage: `bash cargo-clean.sh target_dir` | |
clean_recursive() { | |
# First, check whether current directiry is the root of a cargo project. | |
if [ -f "Cargo.toml" ]; then | |
echo "Cleaning \"$(pwd)\"" |