Skip to content

Commit

Permalink
feat: change the default mount address (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
naj1n authored Apr 19, 2023
1 parent 44b70a6 commit 2d00143
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 23 deletions.
85 changes: 65 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "illa"
version = "1.2.9"
version = "1.2.10"
authors = ["ILLA <opensource@illasoft.com>"]
edition = "2021"

Expand Down Expand Up @@ -28,3 +28,4 @@ tokio = {version = "1.20", features = ["full"]}
clap = {version = "4.0.32", features = ["derive"]}
uuid = {version = "1.1.2", features = ["v4"]}
prettytable-rs = "0.10"
dirs = "5.0.0"
5 changes: 3 additions & 2 deletions src/command/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::{command::*, result::Result};
use anyhow::Ok;
use dirs;
use std::{env, fs};

#[cfg(target_os = "macos")]
Expand Down Expand Up @@ -35,8 +36,8 @@ pub fn local_bind_delete(path: String) -> Result {
}

pub fn get_default_mount() -> String {
let tmp_dir = env::temp_dir();
let temp_dir = tmp_dir.join("illa-builder");
let tmp_dir = dirs::home_dir().unwrap();
let temp_dir = tmp_dir.join(".illa-builder");

temp_dir.display().to_string()
}

0 comments on commit 2d00143

Please sign in to comment.