ksud: Remove sufix of 'v' in version tag

close #331
This commit is contained in:
tiann 2023-04-04 14:44:51 +08:00
parent 5be8fe39d0
commit effcaf0cde
No known key found for this signature in database
GPG Key ID: 6D3F65FFD9559C06
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ fn get_git_version() -> Result<(u32, String), std::io::Error> {
"Failed to read git describe stdout",
)
})?;
let version_name = version_name.trim_start_matches('v').to_string();
Ok((version_code, version_name))
}

View File

@ -126,7 +126,7 @@ pub fn root_shell() -> Result<()> {
}
if matches.opt_present("v") {
println!("{}:KernelSU", "25.2");
println!("{}:KernelSU", defs::VERSION_NAME);
return Ok(());
}