diff --git a/src/lib/lib.rs b/src/lib/lib.rs index 83c496a..1e9b387 100644 --- a/src/lib/lib.rs +++ b/src/lib/lib.rs @@ -210,7 +210,7 @@ pub fn base_dir() -> std::io::Result { } /// Get the config directory. If for the entire system, then it will be /pacwoman/config, otherwise -/// it will be /pacwomand/user/{user name from [get_current_user]}/config. +/// it will be /pacwoman/user/{user name from [get_current_user]}/config. /// /// This directory is not guaranteed to exist! If you need it to, use [config_directory]! pub fn get_config_directory(system: bool) -> PathBuf { diff --git a/src/main.rs b/src/main.rs index 10bf2b2..3aa20fd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,9 @@ fn main() -> std::io::Result<()> { if args.initalize { pacwoman::create_directories(!args.user)?; - pacwoman::init_gpg()?; + if !args.user { + pacwoman::init_gpg()?; + } std::fs::write( pacwoman::config_directory(!args.user)?.join("mirrors"), @@ -73,7 +75,9 @@ fn main() -> std::io::Result<()> { .set_repo(repo.clone()) .set_arch(std::env::consts::ARCH.to_string()) .clone(), - ).is_ok() { + ) + .is_ok() + { ok = true; break; }