Added some error handling to deploy.sh

This commit is contained in:
Sebastian 2019-12-20 15:34:08 +01:00
parent 6b031732a6
commit 89e8cad345
1 changed files with 5 additions and 5 deletions

View File

@ -21,17 +21,17 @@ if [ -d output ] && [ -f .head_id ] && diff -q .head_id .tmp_id; then
fi
if [ ! -d ./virtenv ]; then
python3 -m venv virtenv
python3.8 -m venv virtenv
fi
source virtenv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install --upgrade pip || exit -1
pip install -r requirements.txt || exit -1
rm -rf output
nikola build
nikola build || exit -1
rsync -Pvrt --delete ./output/ $DEST
rsync -Pvrt --delete ./output/ $DEST || exit -1
mv .tmp_id .head_id