diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 00:17:34 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-17 00:18:14 +0300 |
| commit | 8d4cc05be0c696db2aabca7e9995e59019a01469 (patch) | |
| tree | ee9caf14c9b72c21574d599ff119b0f4533f3439 /src/main.rs | |
| parent | 1342a76e60ff46c45dcceee689f6eed180eb0650 (diff) | |
feat: add homebrew update handling
refs #127
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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); } } |
