Check that Rust project exists (#4393)
This commit is contained in:
@ -4,7 +4,7 @@ if [ "$#" -ne 1 ]; then
|
|||||||
echo "Error: Must provide the full path to the project to build"
|
echo "Error: Must provide the full path to the project to build"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$1" ]; then
|
if [ ! -f "$1/Cargo.toml" ]; then
|
||||||
echo "Error: Cannot find project: $1"
|
echo "Error: Cannot find project: $1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -4,7 +4,7 @@ if [ "$#" -ne 1 ]; then
|
|||||||
echo "Error: Must provide the full path to the project to build"
|
echo "Error: Must provide the full path to the project to build"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ ! -d "$1" ]; then
|
if [ ! -f "$1/Cargo.toml" ]; then
|
||||||
echo "Error: Cannot find project: $1"
|
echo "Error: Cannot find project: $1"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user