From c121498b5b6fe34bf50a630197a0f6daf522182b Mon Sep 17 00:00:00 2001 From: Jack May Date: Wed, 22 May 2019 15:09:59 -0700 Subject: [PATCH] Check that Rust project exists (#4393) --- sdk/bpf/rust-utils/build.sh | 2 +- sdk/bpf/rust-utils/clean.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/bpf/rust-utils/build.sh b/sdk/bpf/rust-utils/build.sh index a391529188..e760da0acc 100755 --- a/sdk/bpf/rust-utils/build.sh +++ b/sdk/bpf/rust-utils/build.sh @@ -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 diff --git a/sdk/bpf/rust-utils/clean.sh b/sdk/bpf/rust-utils/clean.sh index 690ba534ea..76fbe81fb9 100755 --- a/sdk/bpf/rust-utils/clean.sh +++ b/sdk/bpf/rust-utils/clean.sh @@ -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