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