Skip to content

Commit 0701a65

Browse files
authored
fix: fuelup self update should not update if current bin version is higher (#604)
1 parent 06d6026 commit 0701a65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ops/fuelup_self.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ pub fn self_update(force: bool) -> Result<()> {
113113
)?;
114114

115115
let fuelup_bin = fuelup_bin();
116+
let fuelup_version = get_bin_version(&fuelup_bin).ok();
116117

117-
if !force && get_bin_version(&fuelup_bin).ok() == Some(download_cfg.version.clone()) {
118+
if !force && fuelup_version >= Some(download_cfg.version.clone()) {
118119
info!(
119120
"Already up to date (fuelup v{})",
120121
download_cfg.version.to_string()

0 commit comments

Comments
 (0)