diff options
| author | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-07 15:40:04 +0530 |
|---|---|---|
| committer | Kunal Mohan <kunalmohan99@gmail.com> | 2021-05-07 15:42:00 +0530 |
| commit | 2446aec82c9446638027ced2ae3a22cc1e6e5bee (patch) | |
| tree | 64bf9fc8ea7258e6e3e16ecfc1033110f7c4171f /src/common/setup.rs | |
| parent | fix(build): Make sure `assets/man` folder exists before building (diff) | |
| download | sl0ppij-2446aec82c9446638027ced2ae3a22cc1e6e5bee.tar.gz sl0ppij-2446aec82c9446638027ced2ae3a22cc1e6e5bee.tar.xz sl0ppij-2446aec82c9446638027ced2ae3a22cc1e6e5bee.zip | |
hotfix(logging): fix atomic_create_file and make set_permissions() return an error
Diffstat (limited to 'src/common/setup.rs')
| -rw-r--r-- | src/common/setup.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/setup.rs b/src/common/setup.rs index edfa858a..2eceba18 100644 --- a/src/common/setup.rs +++ b/src/common/setup.rs @@ -42,7 +42,7 @@ pub mod install { let path = data_dir.join(path); let parent_path = path.parent().unwrap(); fs::create_dir_all(parent_path).unwrap(); - set_permissions(parent_path); + set_permissions(parent_path).unwrap(); if out_of_date || !path.exists() { fs::write(path, bytes).expect("Failed to install default assets!"); } |
