15 lines
306 B
Bash
Executable file
15 lines
306 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd -- "$(dirname -- "${BASH_SOURCE[0]}" )"
|
|
|
|
if ! [[ $(git submodule update --checkout themes/launcher) ]]; then
|
|
# no updates
|
|
if ! [[ ${FORCE_HUGO_UPDATE} == 1 ]]; then
|
|
exit 0
|
|
fi
|
|
fi
|
|
|
|
hugo || exit 1
|
|
|
|
rm -rf /var/www/launcher.jrpie.de/*
|
|
mv public/* /var/www/launcher.jrpie.de
|