From 3ced70b4917b92322effb6f01fbef845c9b2e185 Mon Sep 17 00:00:00 2001 From: TheAwiteb Date: Wed, 3 Jan 2024 15:46:22 +0300 Subject: [PATCH] Update the notification message --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0205137..995e750 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,10 +47,12 @@ fn main() -> ExitCode { #[cfg(feature = "update-notify")] { match utils::lprs_version() { - Ok(Some(new_version)) => { + Ok(Some(new_version)) if new_version == VERSION => { 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}` - \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) => {