#!/bin/bash rsync -rtv mtio:/opt/minebest/ ~/linux-minetest-kit-rsync --exclude "mtkit/minetest/" --exclude "assemble/" # ^ exclude mtkit/minetest/ and assemble/ since they are remotely-built copies of the program. # --info=progress2 code=$? if [ $code -eq 0 ]; then echo "Updating ~/linux-minetest-kit-rsync...OK" else echo "Updating ~/linux-minetest-kit-rsync...FAILED" fi cd ~/linux-minetest-kit-rsync cat <