web/update.sh

15 lines
241 B
Bash
Executable File

#!/bin/sh
directorio="$HOME/web"
if [ "$PWD" != "$directorio" ]
then
cd "$directorio"
fi
git pull > update.log
bundle >> update.log && bundle update >> update.log
JEKYLL_ENV=production bundle exec jekyll build --trace >> update.log