cullmann.io/update.sh

19 lines
387 B
Bash
Raw Normal View History

2019-04-06 17:17:57 +02:00
#!/bin/bash
# failures are evil
set -e
# update our clone
git submodule update --init --recursive
2019-04-07 16:50:28 +02:00
git submodule foreach git pull origin master
2019-04-07 16:52:09 +02:00
git pull
2019-04-06 17:17:57 +02:00
# rerun hugo generator
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-04-06 17:17:57 +02:00
./hugo
2019-04-06 18:29:08 +02:00
# current date
2019-04-06 18:30:04 +02:00
date -Iseconds