]> asedeno.scripts.mit.edu Git - sipb-mirrors.git/blobdiff - OPTIONS.sh
fedora-buffet: exit with status from quick-fedora-mirror
[sipb-mirrors.git] / OPTIONS.sh
index faa85b06c3dc9f6329304def1253a49e6b3c4371..c213458297fee1c738fa8cba54591e81f63f527e 100644 (file)
@@ -1 +1,13 @@
 MIRRORDIR=/ifs/mirror
+
+rsync () {
+    # Ignore these exit statuses from rsync:
+    #   23  Partial transfer due to error
+    #   24  Partial transfer due to vanished source files
+    command rsync "$@" || (
+        case "$?" in
+            23 | 24) echo "mirrors.mit.edu: Ignoring rsync exit status $?" >&2;;
+            *) exit $?
+        esac
+    )
+}