website/build.sh
2018-04-02 23:12:19 +02:00

13 lines
318 B
Bash
Executable file

#!/bin/bash
cd $HOME/build-websites/kaboom-website/
rm Gemfile.lock
bundle install
if jekyll build --destination $HOME/html/kaboom.pw/; then
cd $HOME/html/kaboom.pw/
rm -rf *.br
rm -rf *.gz
for file in `find . -type f -name '*'`; do
$HOME/build-websites/zopfli $file
$HOME/build-websites/brotli $file
done
fi