feat(install): skip already installed mods in install cmd
This commit is contained in:
parent
ea766de5c3
commit
86a46f7562
1 changed files with 5 additions and 0 deletions
|
|
@ -40,6 +40,11 @@ impl Install {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
|
|
||||||
for mod_name in &self.mods {
|
for mod_name in &self.mods {
|
||||||
|
if config.mods.contains_key(mod_name) {
|
||||||
|
println!("{} mod already installed, skipping...", mod_name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
let url = format!("{}/project/{}/version", Self::BASE_URL, mod_name);
|
let url = format!("{}/project/{}/version", Self::BASE_URL, mod_name);
|
||||||
|
|
||||||
let params = InstallQueryParams {
|
let params = InstallQueryParams {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue