Refactor the auto build script #41

Merged
sixtus merged 1 commits from auto_build_again into main 2022-05-14 15:55:17 +00:00

1 Commits

Author SHA1 Message Date
sixtus 58f24dfa7c Refactor the auto build script
- 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
2022-05-14 17:40:48 +02:00