diff --git a/Cargo.lock b/Cargo.lock index 5743b6c..fea4606 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "ricem" -version = "0.1.0" +version = "0.2.0" dependencies = [ "json 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/src/main.rs b/src/main.rs index 0479ac6..ffb1b6b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -417,6 +417,8 @@ fn main() { .replace("~", std::env::home_dir().unwrap().to_str().unwrap()); track_buf = std::path::PathBuf::from(track_string).join(val[0].as_str().unwrap()); + } else { + track_buf = std::path::PathBuf::from(val[1].as_str().unwrap()).join(val[0].as_str().unwrap()); } std::fs::copy(theme_path, track_buf).unwrap();