- Turns out, it works on the server, but not fom the crontab
- The GOPATH environment variable does indeed suck
- It is not required for launching (some precompiled) hugo
- Replace lookup to gitea api with "git fetch"
- Drops dependency of "curl" and "jq" \o/
- Make sure commands do bail out on error
- 'if ! command; then exit 1; fi' -> does not work reliably
- 'command || exit 1' -> does work \o/
- Bail out if hugo fails
- Replace main 'if … elif … fi' cascade with single "if … fi" blocks