aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/setup.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-05-07 15:40:04 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-07 15:42:00 +0530
commit2446aec82c9446638027ced2ae3a22cc1e6e5bee (patch)
tree64bf9fc8ea7258e6e3e16ecfc1033110f7c4171f /src/common/setup.rs
parentfix(build): Make sure `assets/man` folder exists before building (diff)
downloadsl0ppij-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.rs2
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!");
}