From 55caec2fff9af3b91a466d3dc6521837997c4964 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 2 Mar 2024 10:00:14 +0100 Subject: [PATCH] Move content to `content` folder --- src/repo/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/repo/mod.rs b/src/repo/mod.rs index 99fb0d3..a7cab97 100644 --- a/src/repo/mod.rs +++ b/src/repo/mod.rs @@ -25,9 +25,14 @@ impl SiloRepo { } let config = read_config(path)?; let pctx = ParseContext::new(GlobSet::empty(), config.clone()); + let content_path = path.join("content"); + + if !content_path.exists() { + bail!("No content stored in this dotfiles repo"); + } Ok(Self { - contents: Contents::parse(pctx, path.to_owned())?, + contents: Contents::parse(pctx, content_path)?, config, }) }