change lftp sync option

…would’ve been nice with some SSH access 😉
This commit is contained in:
Jeppe Ernst 2018-04-25 17:41:44 +02:00
parent baecd6b2fa
commit 68018abd6c
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@ description: >- # this means to ignore newlines until "baseurl:"
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://ulovliglogning.dk" # the base hostname & protocol for your site, e.g. http://example.com
donationCounter:
donated: 186594
donated: 186595
goal: 250000
# multilanguage support

View file

@ -24,7 +24,7 @@ if [ -d "$jekyll_dir" ]; then
exit 1
else
echo -e "${success}Build succeded, now uploading to FTP server${normal}"
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --ignore-time -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
lftp -u ${remote_username},${remote_password} -e "mirror -R -p -P=10 --only-newer -v ${jekyll_dir}/_site/ ${remote_dir};quit" ftp://${remote_host}
if [[ $? != 0 ]]; then
echo -e "${error}FAILED: Something went wrong trying to upload to the FTP server${normal}"
exit 1