#!/bin/bash

# This rsync wrapper ignores error code (24) that appears in case of absent
# some source files. Exact warning is the following:
#  rsync warning: some files vanished before they could be transferred (code 24)

rsync "$@"
RET=$?
if [ "$RET" == 24 ]; then
    exit 0
fi
exit $RET