From 2bf46b789fa35ad69aa25eee5fde7093604a5372 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Mon, 15 Mar 2021 13:07:08 -0600 Subject: [PATCH] Also ignore `*/node_modules/*` paths when bumping version --- scripts/increment-cargo-version.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/increment-cargo-version.sh b/scripts/increment-cargo-version.sh index c48cb39bf..96f223936 100755 --- a/scripts/increment-cargo-version.sh +++ b/scripts/increment-cargo-version.sh @@ -23,6 +23,7 @@ ignores=( .cargo target web3.js/examples + node_modules ) not_paths=() @@ -30,10 +31,10 @@ 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,SC2068 # Don't want a positional arg if `not-paths` is empty -markdownFiles=($(find . -name "*.md" ${not_paths[@]})) +# shellcheck disable=2207 +Cargo_tomls=($(find . -mindepth 2 -name Cargo.toml "${not_paths[@]}")) +# shellcheck disable=2207 +markdownFiles=($(find . -name "*.md" "${not_paths[@]}")) # Collect the name of all the internal crates crates=()