Update the notification message
This commit is contained in:
parent
abdcbdf6dc
commit
3ced70b491
1 changed files with 4 additions and 2 deletions
|
@ -47,10 +47,12 @@ fn main() -> ExitCode {
|
||||||
#[cfg(feature = "update-notify")]
|
#[cfg(feature = "update-notify")]
|
||||||
{
|
{
|
||||||
match utils::lprs_version() {
|
match utils::lprs_version() {
|
||||||
Ok(Some(new_version)) => {
|
Ok(Some(new_version)) if new_version == VERSION => {
|
||||||
println!(
|
println!(
|
||||||
"Warning: The version you are using of lprs is outdated. There is a newer version, which is `{new_version}`, and your version is `{VERSION}`
|
"Warning: The version you are using of lprs is outdated. There is a newer version, which is `{new_version}`, and your version is `{VERSION}`
|
||||||
\rYou can update via: `cargo install lprs -F update-notify --locked`\n\n"
|
\rYou can update via: `cargo install lprs --locked`
|
||||||
|
\rOr via git repo: `cargo install --locked --git https://github.com/TheAwiteb/lprs.git`
|
||||||
|
\rTo disable update notification: `cargo install lprs --locked --no-default-features`\n\n"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|
Loading…
Reference in a new issue