13 lines
441 B
Bash
Executable File
13 lines
441 B
Bash
Executable File
#!/bin/bash -e
|
|
set -Eeuo pipefail
|
|
|
|
if [[ ! -f hugo/hugo ]] || ( ! ( hugo/hugo version | grep -q extended ) ); then
|
|
curl -L https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_extended_0.110.0_linux-amd64.tar.gz | tar -xvz -C hugo/
|
|
fi
|
|
export PATH="$(pwd)/hugo:$PATH"
|
|
|
|
cd siterepo
|
|
./build.sh
|
|
rm ./hugo-static/public/manifest.json # Conflicts with main manifest.
|
|
cp -r ./assets/* ./assets/.??* ./hugo-static/public/* ../sitegen/
|