Skip to content
Snippets Groups Projects
Commit c1211b7e authored by jbar's avatar jbar
Browse files

little script to be called from a cron

parent 5eb1c6b9
Branches
Tags
No related merge requests found
#!/bin/bash
# Call this script with the -D or --buildDrafts to build also content marked as draft.
# And put it on a cron to synchronize periodically
cd $(dirname "$0")
head="$(git rev-parse HEAD)"
git stash
git pull --rebase --recurse-submodules
git stash pop
[[ $(git rev-parse HEAD) == $head ]] || hugo "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment