#!/bin/bash deploy() { git push && rsync -r --exclude-from=.deploy-ignore . pax2ero:/home/dany/www/schubertdaniel/linuxkurs } deploy && echo "Deployed" || echo "### some error #####"