Skip to content

Commit 70cc215

Browse files
committed
only require profile on geode index install
1 parent 4bf44eb commit 70cc215

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geode"
3-
version = "3.3.1"
3+
version = "3.3.2"
44
authors = [
55
"HJfod <[email protected]>",
66
"Camila314 <[email protected]>",

src/index.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,17 @@ pub fn get_mod_versions(
362362
}
363363

364364
pub fn subcommand(cmd: Index) {
365-
let mut _config = Config::new().assert_is_setup();
365+
let mut _config = Config::new();
366366
let config = &mut _config;
367367
match cmd {
368368
Index::Install { id, version } => {
369-
install_mod(config, &id, &version.unwrap_or(VersionReq::STAR), false);
369+
let mut config = Config::new().assert_is_setup();
370+
install_mod(
371+
&mut config,
372+
&id,
373+
&version.unwrap_or(VersionReq::STAR),
374+
false,
375+
);
370376
done!("Mod installed");
371377
}
372378
Index::Login { token } => index_auth::login(config, token),

0 commit comments

Comments
 (0)