web/update.sh

15 lines
186 B
Bash
Executable File

#!/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