From 8d4cc05be0c696db2aabca7e9995e59019a01469 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 17 May 2026 00:17:34 +0300 Subject: feat: add homebrew update handling refs #127 --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 33461e4d..c852c33b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -258,7 +258,11 @@ fn main() -> io::Result<()> { match update::self_update() { Ok(_) => return Ok(()), Err(e) => { - eprintln!("update failed: {e}"); + if e.starts_with("self-update is disabled") { + eprintln!("{e}"); + } else { + eprintln!("update failed: {e}"); + } std::process::exit(1); } } -- cgit v1.2.3