Skip to content

Commit

Permalink
Fix crash when applying custom files
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkor committed Aug 18, 2016
1 parent 2b7e12b commit c5698fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c5698fb

Please sign in to comment.