Check that Rust project exists (#4393)

This commit is contained in:
Jack May 2019-05-22 15:09:59 -07:00 committed by GitHub
parent eef2bdf690
commit c121498b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ if [ "$#" -ne 1 ]; then
echo "Error: Must provide the full path to the project to build"
exit 1
fi
if [ ! -d "$1" ]; then
if [ ! -f "$1/Cargo.toml" ]; then
echo "Error: Cannot find project: $1"
exit 1
fi

View File

@ -4,7 +4,7 @@ if [ "$#" -ne 1 ]; then
echo "Error: Must provide the full path to the project to build"
exit 1
fi
if [ ! -d "$1" ]; then
if [ ! -f "$1/Cargo.toml" ]; then
echo "Error: Cannot find project: $1"
exit 1
fi