cullmann.io/update.sh

18 lines
343 B
Bash
Raw Normal View History

2023-06-21 20:18:43 +02:00
#!/usr/bin/env zsh
2019-04-06 17:17:57 +02:00
# failures are evil
set -e
# update our clone
2019-04-08 16:45:33 +02:00
git pull -q &> /dev/null
2019-04-06 17:17:57 +02:00
2019-04-06 22:24:29 +02:00
# export the GIT env vars we need to have links in the footer
export GIT_COMMIT_SHA=`git rev-parse --verify HEAD`
export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD`
2019-08-04 12:03:31 +02:00
# rerun hugo generator
2021-01-24 21:39:31 +01:00
hugo --minify --noTimes
2019-04-06 18:29:08 +02:00
# current date
2019-04-06 18:30:04 +02:00
date -Iseconds