From 4ea4824e308ef60db50d58359ae05aafcf7de6f6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 21 Nov 2018 09:24:02 +0100 Subject: [PATCH] track HTML changes in git --- ralf/upload.sh | 9 ++++++++- research/upload.sh | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ralf/upload.sh b/ralf/upload.sh index 6733051..2d9205e 100755 --- a/ralf/upload.sh +++ b/ralf/upload.sh @@ -3,4 +3,11 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP + +git add . +if ! git diff --cached; then + # There are changes + git commit -m "site upload" +fi + +rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP --exclude .git diff --git a/research/upload.sh b/research/upload.sh index 3a528b5..6832be4 100755 --- a/research/upload.sh +++ b/research/upload.sh @@ -3,4 +3,11 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ mpi-contact:public_html/ -aP + +git add . +if ! git diff --cached; then + # There are changes + git commit -m "site upload" +fi + +rsync ./ mpi-contact:public_html/ -aP --exclude .git -- 2.30.2