From 547685a7b3bf33f183f12e64fd5f01964286af21 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 8 Mar 2023 10:18:00 +0100 Subject: Change workdir before running generator --- playbook.bash | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.1