Skip to content

Commit

Permalink
ci: Fix parsing platform tools version
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed Oct 3, 2024
1 parent 93ed317 commit c5c8b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/platform-tools-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SBF_TOOLS_VERSION=unknown

cargo_build_sbf_main="${here}/../sdk/cargo-build-sbf/src/main.rs"
if [[ -f "${cargo_build_sbf_main}" ]]; then
version=$(sed -e 's/^.*platform_tools_version\s*=\s*String::from("\(v[0-9.]\+\)").*/\1/;t;d' "${cargo_build_sbf_main}")
version=$(sed -e 's/^.*DEFAULT_PLATFORM_TOOLS_VERSION.*=\s*"\(v[0-9.]\+\)".*/\1/;t;d' "${cargo_build_sbf_main}")
if [[ ${version} != '' ]]; then
SBF_TOOLS_VERSION="${version}"
else
Expand Down

0 comments on commit c5c8b7d

Please sign in to comment.