]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blob - OPTIONS.sh
fedora-buffet: exit with status from quick-fedora-mirror
[sipb-mirrors.git] / OPTIONS.sh
1 MIRRORDIR=/ifs/mirror
2
3 rsync () {
4     # Ignore these exit statuses from rsync:
5     #   23  Partial transfer due to error
6     #   24  Partial transfer due to vanished source files
7     command rsync "$@" || (
8         case "$?" in
9             23 | 24) echo "mirrors.mit.edu: Ignoring rsync exit status $?" >&2;;
10             *) exit $?
11         esac
12     )
13 }