update.sh 386 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

# failures are evil
set -e

# update our clone
git pull -q &> /dev/null

# 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`
12 13

# rerun hugo generator
Christoph Cullmann's avatar
Christoph Cullmann committed
14
./hugo --minify --noTimes
15 16 17 18 19 20

# copy .htaccess
cp -f static/.htaccess public

# current date
date -Iseconds