X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/351dcf54d4afe8ff5baa83672d36531c0d3e901a..ad3d97f191e9b6c7385ba4bb7b03c57910488d25:/research/upload.sh 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