Skip to content

Commit 0b1cb02

Browse files
mdqstniklasad1
andauthored
fix: version parsing in scripts/publish.sh (#1556)
* fix: version parsing for sub-crates in loop * Update publish.sh --------- Co-authored-by: Niklas Adolfsson <[email protected]>
1 parent 90c2cc5 commit 0b1cb02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/publish.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
set -eu
77

88
ORDER=(types proc-macros core client/http-client client/transport client/ws-client client/wasm-client server jsonrpsee)
9-
DIR=$(pwd)
109

1110
function read_toml () {
1211
NAME=""
1312
VERSION=""
1413
NAME=$(grep "^name" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
15-
VERSION=$(grep "^version" $DIR/Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
14+
VERSION=$(grep "^version" ./Cargo.toml | sed -e 's/.*"\(.*\)"/\1/')
1615
}
1716
function remote_version () {
1817
REMOTE_VERSION=""

0 commit comments

Comments
 (0)