ulovliglogning.dk/_scripts/build-then-deploy.sh

13 lines
362 B
Bash
Raw Normal View History

2018-04-17 17:31:14 +00:00
#!/bin/sh
set -e
#get config vars
source _scripts/config.sh
#Disable SSL check for lftp, this fails on our host :(
echo "set ssl:verify-certificate no" > ~/.lftprc
if [ -d "$jekyll_dir" ]; then
jekyll build
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --ignore-time -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
fi