X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/c3f35ab1622ecb792dba0ece727f148abf6018fb..4ea4824e308ef60db50d58359ae05aafcf7de6f6:/ralf/upload.sh diff --git a/ralf/upload.sh b/ralf/upload.sh index 88e6126..2d9205e 100755 --- a/ralf/upload.sh +++ b/ralf/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