Ignore more paths in increment-cargo-version.sh
(cherry picked from commit c1c69ecc34
)
This commit is contained in:
committed by
Michael Vines
parent
f76c128f4f
commit
2fe1a4677c
@ -30,8 +30,20 @@ readCargoVariable() {
|
|||||||
echo "Unable to locate $variable in $Cargo_toml" 1>&2
|
echo "Unable to locate $variable in $Cargo_toml" 1>&2
|
||||||
}
|
}
|
||||||
|
|
||||||
# shellcheck disable=2207
|
ignores=(
|
||||||
Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml -not -path './web3.js/examples/*'))
|
.cache
|
||||||
|
.cargo
|
||||||
|
target
|
||||||
|
web3.js/examples
|
||||||
|
)
|
||||||
|
|
||||||
|
not_paths=()
|
||||||
|
for ignore in "${ignores[@]}"; do
|
||||||
|
not_paths+=(-not -path "*/$ignore/*")
|
||||||
|
done
|
||||||
|
|
||||||
|
# shellcheck disable=2207,SC2068 # Don't want a positional arg if `not-paths` is empty
|
||||||
|
Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml ${not_paths[@]}))
|
||||||
# shellcheck disable=2207
|
# shellcheck disable=2207
|
||||||
markdownFiles=($(find . -name "*.md"))
|
markdownFiles=($(find . -name "*.md"))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user