Skip to content

Commit

Permalink
Add env-var to override update message
Browse files Browse the repository at this point in the history
  • Loading branch information
FlareFlo committed Dec 30, 2023
1 parent ab18081 commit e93e9d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ fn main() -> Result<()> {
let command = build_command_structure().get_matches();
branch_subcommands(command)?;

update_message()?;

// Only fetch and print update message when override is disabled
if !env::var_os("NO_UPDT_CHK").is_some() {
update_message()?;
}
Ok(())
}

0 comments on commit e93e9d4

Please sign in to comment.