prevent deploy on failed .env sourcing
This commit is contained in:
parent
97fbca209c
commit
f50754a8da
1 changed files with 4 additions and 5 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue