Added some error handling to deploy.sh
This commit is contained in:
parent
6b031732a6
commit
89e8cad345
10
deploy.sh
10
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
|
||||
|
|
Loading…
Reference in New Issue