From 89e8cad345d74ffbf97a7285d5743d23e0381fec Mon Sep 17 00:00:00 2001 From: LongHairedHacker Date: Fri, 20 Dec 2019 15:34:08 +0100 Subject: [PATCH] Added some error handling to deploy.sh --- deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deploy.sh b/deploy.sh index f29a4d7..3299d3e 100644 --- a/deploy.sh +++ b/deploy.sh @@ -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