File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ sed -i'' -e "s#solana_version=v.*#solana_version=v${solana_ver}#" ./ci/solana-ve
17
17
sed -i' ' -e " s#solana_version = \" .*\" #solana_version = \" ${solana_ver} \" #" ./Anchor.toml
18
18
19
19
declare tomls=()
20
- while IFS=' ' read -r line; do tomls+=(" $line " ); done < <( find . -name Cargo.toml)
20
+ while IFS=' ' read -r line; do tomls+=(" $line " ); done < <( find . -mindepth 2 - name ' Cargo.toml' )
21
21
22
22
crates=(
23
23
solana-account-decoder
@@ -84,6 +84,6 @@ crates=(
84
84
85
85
set -x
86
86
for crate in " ${crates[@]} " ; do
87
- sed -E -i ' ' -e " s:( ${crate} = \" )([=<>]*) ${old_solana_ver} ([^ \" ]*) \" .*:\1\2 ${solana_ver} \3 \" : " " ${tomls[@]} "
88
- sed -E -i ' ' -e " s:( ${crate} = \ { version = \" )([=<>]*) ${old_solana_ver} ([^ \" ]*)( \" .*):\1\2 ${solana_ver} \3\4: " " ${tomls[@]} "
87
+ sed -i " s| ${crate} = \" .*| ${crate} = \" = ${solana_ver} \" |g " " ${tomls[@]} "
88
+ sed -i " s| ${crate} = { version = \" [0-9\.<=>,]* \" \(.*\)| ${crate} = { version = \" = ${solana_ver} \" \1|g " " ${tomls[@]} "
89
89
done
You can’t perform that action at this time.
0 commit comments