solana/sdk/bpf/rust/clean.sh

18 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$#" -ne 1 ]; then
echo "Error: Must provide the full path to the project to build"
exit 1
fi
if [ ! -f "$1/Cargo.toml" ]; then
echo "Error: Cannot find project: $1"
exit 1
fi
cd "$1"
set -e
echo "Cleaning $1"
cargo clean