Skip to content

Commit

Permalink
print the correct sui console version (MystenLabs#3639)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo authored Aug 1, 2022
1 parent fea3240 commit fa0274b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/sui/src/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ pub async fn start_console(
) -> Result<(), anyhow::Error> {
let app: Command = SuiClientCommands::command();
writeln!(out, "{}", SUI.cyan().bold())?;
let mut version = app
.get_long_version()
.unwrap_or_else(|| app.get_version().unwrap_or("unknown"))
.to_owned();
let mut version = env!("CARGO_PKG_VERSION").to_owned();
if let Some(git_rev) = std::option_env!("GIT_REVISION") {
version.push('-');
version.push_str(git_rev);
Expand Down

0 comments on commit fa0274b

Please sign in to comment.