diff --git a/scripts/increment-cargo-version.sh b/scripts/increment-cargo-version.sh index bfe2f0bfac..c114c2adfc 100755 --- a/scripts/increment-cargo-version.sh +++ b/scripts/increment-cargo-version.sh @@ -31,7 +31,7 @@ readCargoVariable() { } # shellcheck disable=2207 -Cargo_tomls=($(find . -name Cargo.toml -not -path './web3.js/examples/*')) +Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml -not -path './web3.js/examples/*')) # shellcheck disable=2207 markdownFiles=($(find . -name "*.md"))