From 79024d5e42202c22475d96428bffeb2dde7f91c4 Mon Sep 17 00:00:00 2001 From: Aaron Manning Date: Fri, 29 Mar 2024 15:13:17 +1100 Subject: [PATCH] 0.1.1: fix bug when using local path --- Cargo.toml | 2 +- src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) }