From 4cc8addb72d6159ff3c1dbe1dcce51cfcbb630f5 Mon Sep 17 00:00:00 2001 From: quirinecker Date: Mon, 13 Mar 2023 01:32:56 +0100 Subject: [PATCH] creating required slides directory when preapring for build --- src/app/commands/executions/build_execution.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/commands/executions/build_execution.rs b/src/app/commands/executions/build_execution.rs index f5fbaac..818c30d 100644 --- a/src/app/commands/executions/build_execution.rs +++ b/src/app/commands/executions/build_execution.rs @@ -5,7 +5,7 @@ use std::{ use crate::app::{ build::{docki_build, DockiBuildResult}, - fs_util, log::display_status, + fs_util::{self, create_dir_recursive}, log::display_status, }; pub struct BuildExecution { @@ -42,6 +42,8 @@ impl BuildExecution { let reveal_version = "3.9.2"; let target = format!("https://github.com/hakimel/reveal.js/archive/{reveal_version}.zip"); + create_dir_recursive("./docs/slides"); + let Ok(response) = reqwest::get(target).await else { return Err("could not downlaod revealjs".to_string()) };