web/update.sh

14 lines
184 B
Bash

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