diff options
author | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 10:18:00 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-03-08 10:18:00 +0100 |
commit | 547685a7b3bf33f183f12e64fd5f01964286af21 (patch) | |
tree | 80a6108c15d9b191510a01fc87c0a0396092080e | |
parent | ce8b92fcf303a40ef176e2b3dd7af879462fb7a6 (diff) | |
download | www-static-547685a7b3bf33f183f12e64fd5f01964286af21.tar.gz www-static-547685a7b3bf33f183f12e64fd5f01964286af21.tar.bz2 |
Change workdir before running generator
-rw-r--r-- | playbook.bash | 2 |
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 |