0.1.1: fix bug when using local path

This commit is contained in:
Aaron Manning 2024-03-29 15:13:17 +11:00
parent 0a2a9a8637
commit 79024d5e42
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "typst-install"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["Aaron Manning"]

View File

@ -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)
}