summaryrefslogtreecommitdiff
path: root/src/commands/update.rs
diff options
context:
space:
mode:
authorFxQnLr <[email protected]>2023-01-29 14:13:06 +0100
committerFxQnLr <[email protected]>2023-01-29 14:13:06 +0100
commitd7d0c904bff665ab5c8355f2381a0628ebbf7a30 (patch)
tree68a63f39a5bf6241e4ca9499d03ea148ec9737c4 /src/commands/update.rs
parentc51647f527b43e7109d6922e07c6c1daa5501819 (diff)
parent54752f7eb39e20929a7816c90be33bf8dbff2a6c (diff)
downloadmodlist-d7d0c904bff665ab5c8355f2381a0628ebbf7a30.tar
modlist-d7d0c904bff665ab5c8355f2381a0628ebbf7a30.tar.gz
modlist-d7d0c904bff665ab5c8355f2381a0628ebbf7a30.zip
Merge branch 'new_input' of https://github.com/FxQnLr/modlist into new_input
Diffstat (limited to 'src/commands/update.rs')
-rw-r--r--src/commands/update.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/update.rs b/src/commands/update.rs
index f71f537..d400a24 100644
--- a/src/commands/update.rs
+++ b/src/commands/update.rs
@@ -74,7 +74,7 @@ pub async fn cmd_update(config: Cfg, liststack: Vec<List>, clean: bool, direct_d
74 //Linebreak readability 74 //Linebreak readability
75 println!(""); 75 println!("");
76 76
77 if direct_download { 77 if direct_download && !updatestack.is_empty() {
78 download_versions(current_list.clone(), config.clone(), updatestack).await?; 78 download_versions(current_list.clone(), config.clone(), updatestack).await?;
79 79
80 //Disable old versions 80 //Disable old versions
@@ -90,7 +90,6 @@ pub async fn cmd_update(config: Cfg, liststack: Vec<List>, clean: bool, direct_d
90 } 90 }
91 } 91 }
92 }; 92 };
93
94 } 93 }
95 94
96 Ok(()) 95 Ok(())