From 6ff1736271514ef8c5e8d58558ac785b52952fb0 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 29 Nov 2022 16:01:00 -0800 Subject: [PATCH] Make site rebuild blocking --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index f01916c..5ed4527 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -108,7 +108,7 @@ pub fn to_fullwidth(string: &str) -> String { pub fn rebuild_site() { Command::new("./build.sh") .current_dir(get_hugo_path()) - .spawn() + .status() .expect("Failed to rebuild site"); }