mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-08 11:49:10 +00:00
feat: add dir to path if not already there
This commit is contained in:
parent
5ba332acce
commit
c0140d6523
1 changed files with 5 additions and 1 deletions
|
@ -28,12 +28,16 @@ fn main() {
|
|||
|
||||
let (zip_path, meta) = download_release(version).expect_or_log("failed to download latest lune release");
|
||||
|
||||
install_lune(
|
||||
let mut install_path = install_lune(
|
||||
File::open(&zip_path).unwrap_or_else(|_| panic!("failed to open downloaded lune release zip file @ {}", zip_path.to_string_lossy())),
|
||||
meta,
|
||||
)
|
||||
.expect_or_log("failed to install lune. did we not have perms to write to the required directories?");
|
||||
|
||||
install_path.pop();
|
||||
|
||||
core::add_path(install_path.to_string_lossy());
|
||||
|
||||
// Cleanup downloaded & unzipped stuff
|
||||
let to_remove = read_dir(".")
|
||||
.expect_or_log("failed to read current working directory")
|
||||
|
|
Loading…
Reference in a new issue