diff --git a/Cargo.toml b/Cargo.toml index 36d6162..eb7d67d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typst-install" -version = "0.1.0" +version = "0.1.1" edition = "2021" authors = ["Aaron Manning"] diff --git a/src/main.rs b/src/main.rs index c37faec..3cb3842 100644 --- a/src/main.rs +++ b/src/main.rs @@ -103,7 +103,8 @@ fn main() { } } - if let Err(err) = copy_dir_all(args.manifest.parent().unwrap(), package_folder) { + + if let Err(err) = copy_dir_all(args.manifest.canonicalize().unwrap().parent().unwrap(), package_folder) { eprintln!("Error occured while copying package folder to installation location: {}", err); process::exit(1) }