Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
thenextman committed Sep 13, 2024
1 parent 60b23bc commit 5bba118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ WantedBy=multi-user.target"#,
let path = dropin_dir
.join(format!("{}.conf", self.service_name));

if !fs::exists(dropin_dir.clone()).map_err(|e| Error::new(""))? {
if !Path::exists(&dropin_dir) {
fs::create_dir(dropin_dir)
.map_err(|e| Error::new(&format!("Failed to create {}: {}", path.display(), e)))?;
}
Expand Down

0 comments on commit 5bba118

Please sign in to comment.