17 lines
240 B
Bash
17 lines
240 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
if [ "$#" -ne 1 ]; then
|
||
|
echo "Error: Must provide the full path to the project to build"
|
||
|
exit 1
|
||
|
fi
|
||
|
if [ ! -d "$1" ]; then
|
||
|
echo "Error: Cannot find project: $1"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
cd "$1"
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
cargo clean
|