web/update.sh

15 lines
242 B
Bash
Raw Normal View History

2021-01-07 23:58:41 +01:00
#!/bin/sh
2021-01-08 00:05:00 +01:00
directorio="$HOME/web"
2021-01-07 23:58:41 +01:00
2021-01-08 00:06:09 +01:00
if [ "$PWD" != "$directorio" ]
2021-01-07 23:58:41 +01:00
then
cd "$directorio"
fi
2021-01-08 00:09:09 +01:00
git pull >> update.log
2021-01-07 23:58:41 +01:00
2021-01-08 00:09:09 +01:00
bundle >> update.log && bundle update >> update.log
2021-01-07 23:58:41 +01:00
2021-01-08 00:09:09 +01:00
JEKYLL_ENV=production bundle exec jekyll build --trace >> update.log