Create build path if it doesn't exist.
This commit is contained in:
parent
6afd087c5b
commit
4ca427121c
@ -117,6 +117,10 @@ fn reload(config: &State<Config>, repo: &str) -> Result<String, SyncError> {
|
||||
&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)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user