prevent deploy on failed .env sourcing

This commit is contained in:
Paul Lesur 2019-05-28 11:44:54 +02:00 committed by Paul Lesur
parent 97fbca209c
commit f50754a8da

View file

@ -1,8 +1,7 @@
#!/bin/bash
# this should define:
# UNAME, HOST, PORT, DEST_DIR
source .env
latexmk cv.tex -xelatex && \
rsync --archive -hh --partial --info=stats1 --info=progress2 --modify-window=1 -e "ssh -p ${PORT}" cv.pdf ${UNAME}@${HOST}:${DEST_DIR}/${DEST_FILE}
# UNAME, HOST, PORT, DEST_DIR, DEST_FILE
source .env && \
latexmk cv.tex -xelatex && \
rsync --archive -hh --partial --info=stats1 --info=progress2 --modify-window=1 -e "ssh -p ${PORT}" cv.pdf ${UNAME}@${HOST}:${DEST_DIR}/${DEST_FILE}