From 4ca427121ccf5fcf2a0cf8cf12d17a9033cb27b9 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sat, 3 Dec 2022 22:32:10 -0800 Subject: [PATCH] Create build path if it doesn't exist. --- src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.rs b/src/main.rs index af1fcdc..9a1fcd0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,6 +117,10 @@ fn reload(config: &State, repo: &str) -> Result { &www_root ); + if !build_path.exists() { + info!("Creating {}", build_path.display()); + fs::create_dir_all(&build_path)?; + } if !commits_root.exists() { info!("Creating {}", commits_root.display()); fs::create_dir_all(&commits_root)?;