#!/bin/shcd /location/of/clonegit add *if [[ $? != 0 ]] then mail -s "add failed" someone@some.com exit 1figit commit -a -m "commit message, to avoid being prompted interactively"if [[ $? != 0 ]] then mail -s "commit failed" someone@some.com exit 1figit pushif [[ $? != 0 ]] then mail -s "push failed" someone@some.com exit 1fimail -s "push ok" someone@some.com
|