Skip to content

Commit

Permalink
path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lochlan Wansbrough committed Oct 7, 2024
1 parent 616aa27 commit 3314fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/new/game.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub async fn game(identifier: &String, name: &String, template: &Option<String>)
pub fn template_files(template_key: &str, project_root: &Path, paths: Vec<Cow<'static, str>>, globals: &Object) -> crate::Result<()> {
for path in paths {
let contents = Templates::get(path.as_ref()).unwrap();
let relative_path = path.strip_prefix(&template_key).unwrap();
let relative_path = path.strip_prefix(&format!("{template_key}/")).unwrap();
let destination_path = project_root.join(PathBuf::from(relative_path));
let mut file = fs::OpenOptions::new()
.create(true)
Expand Down

0 comments on commit 3314fcd

Please sign in to comment.