@@ -29,6 +29,7 @@ fn get_git_version() -> Result<(u32, String), std::io::Error> {
|
|||||||
"Failed to read git describe stdout",
|
"Failed to read git describe stdout",
|
||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
let version_name = version_name.trim_start_matches('v').to_string();
|
||||||
Ok((version_code, version_name))
|
Ok((version_code, version_name))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ pub fn root_shell() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if matches.opt_present("v") {
|
if matches.opt_present("v") {
|
||||||
println!("{}:KernelSU", "25.2");
|
println!("{}:KernelSU", defs::VERSION_NAME);
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user