mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
fix: create directory before canonicalizing
This commit is contained in:
parent
c413d8aa22
commit
7a8376ebad
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ fn run() -> anyhow::Result<()> {
|
|||
let token = get_token()?;
|
||||
|
||||
let home_cas_dir = data_dir.join("cas");
|
||||
create_dir_all(&home_cas_dir).expect("failed to create cas directory");
|
||||
let project_root = get_root(&cwd);
|
||||
let cas_dir = if get_root(&home_cas_dir) == project_root {
|
||||
home_cas_dir
|
||||
|
|
Loading…
Reference in a new issue