From 68018abd6c7790a12920942ae8c5d0b7e3cf60fd Mon Sep 17 00:00:00 2001 From: Jeppe Ernst Date: Wed, 25 Apr 2018 17:41:44 +0200 Subject: [PATCH] change lftp sync option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …would’ve been nice with some SSH access :wink: --- _config.yml | 2 +- _scripts/build-then-deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_config.yml b/_config.yml index 1cfb8e1..970d0a7 100644 --- a/_config.yml +++ b/_config.yml @@ -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 diff --git a/_scripts/build-then-deploy.sh b/_scripts/build-then-deploy.sh index b26d3c0..ea43e7a 100644 --- a/_scripts/build-then-deploy.sh +++ b/_scripts/build-then-deploy.sh @@ -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