#!/usr/bin/env bash # blogsend # folders localdir=~/web # update git echo "-- Updating git" cd $localdir || exit git add * git commit -m 'file update' git push origin master # update remote http root echo "-- Updating remote web root" ssh -q soc << EOF cd /srv/http/wittamore.fr || exit pwd git pull EOF printf "Done.\n" exit 0