3 export PATH
=/home
/pasky
/bin
:$PATH
7 log
="$(mktemp -t repomgr-XXXXXX)"
14 if ! "$@" >>"$log" 2>&1; then
15 if ! [ -e .banged
]; then
17 echo "$* failed with error code $?"
18 echo "you will not receive any more notifications until recovery"
21 } |
mail -s "[repo.or.cz] $proj update failed" "$mail",pasky@ucw.cz
29 GIT_DIR
=. bang git mirror
"$url"
30 GIT_DIR
=. bang git update-server-info
31 date -R >.last_refresh
34 if [ -e .banged
]; then
35 echo "$proj update succeeded - failure recovery" |
mail -s "[repo.or.cz] $proj update succeeded" "$mail",pasky@ucw.cz