Skip to content

Commit

Permalink
fix: behavior of .disable-self-update (#4476)
Browse files Browse the repository at this point in the history
Closes #4468
A quick fix for this discussion
  • Loading branch information
ZeroAurora authored Feb 21, 2025
1 parent f68de38 commit 8123465
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ impl SelfUpdate {
.ok()
.and_then(|p| p.parent().map(|p| p.to_path_buf()))
.and_then(|p| p.parent().map(|p| p.to_path_buf()))
.map(|p| p.join("lib").join(".disable-self-update").exists())
.map(|p| {
p.join("lib").join(".disable-self-update").exists() // kept for compability, see #4476
|| p.join("lib")
.join("mise")
.join(".disable-self-update")
.exists()
})
.unwrap_or_default()
}
}

0 comments on commit 8123465

Please sign in to comment.