X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/88f8fb30e0900b1458a5c688876b50fc2d5615ba..4ea4824e308ef60db50d58359ae05aafcf7de6f6:/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