aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-17 00:17:34 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-17 00:18:14 +0300
commit8d4cc05be0c696db2aabca7e9995e59019a01469 (patch)
treeee9caf14c9b72c21574d599ff119b0f4533f3439 /src/main.rs
parent1342a76e60ff46c45dcceee689f6eed180eb0650 (diff)
feat: add homebrew update handling
refs #127
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
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);
}
}