summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-08 10:18:00 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-08 10:18:00 +0100
commit547685a7b3bf33f183f12e64fd5f01964286af21 (patch)
tree80a6108c15d9b191510a01fc87c0a0396092080e
parentce8b92fcf303a40ef176e2b3dd7af879462fb7a6 (diff)
Change workdir before running generator
-rw-r--r--playbook.bash2
1 files changed, 2 insertions, 0 deletions
diff --git a/playbook.bash b/playbook.bash
index bb1aacd..754c18b 100644
--- a/playbook.bash
+++ b/playbook.bash
@@ -24,6 +24,8 @@ playbook_sync() {
git -C "$path" fetch "$remote" "$branch"
git -C "$path" reset --hard "$remote/$branch"
+ chgdir "$path"
+
case "$(config "$BASHTARD_PLAYBOOK.generator")" in
hugo)
hugo -D # This will generate all the draft content