Fix the new update check

This commit is contained in:
TheAwiteb 2024-01-07 21:51:22 +03:00
parent 2de0f65728
commit 084ab77290
No known key found for this signature in database
GPG key ID: ABF818BD15DC2D34

View file

@ -47,7 +47,7 @@ fn main() -> ExitCode {
#[cfg(feature = "update-notify")]
{
match utils::lprs_version() {
Ok(Some(new_version)) if new_version == 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 --locked`