X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..ad3d97f191e9b6c7385ba4bb7b03c57910488d25:/personal/upload.sh diff --git a/personal/upload.sh b/personal/upload.sh index 88e6126..2d9205e 100755 --- a/personal/upload.sh +++ b/personal/upload.sh @@ -3,6 +3,11 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ ralfj.de:srv/www.ralfj.de/docroot/ -aP \ - --exclude=cs/research.html -scp cs/research.html mpi-contact:public_html/index.html + +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