@Denis, the issue is that we incorrectly detect exit code, since we always check `find` command result instead of `rsync` command result.
The impact is that if we have non-zero exit code for `rsync` command we'll never catch this because we have `find`.
In short incorrect flow: 1) rsync 2) find 3) check_rsync_code
but MUST be:
1) rsync 2) check_rsync_code 3) find
@Denis, the issue is that we incorrectly detect exit code, since we always check `find` command result instead of `rsync` command result.
The impact is that if we have non-zero exit code for `rsync` command we'll never catch this because we have `find`.
In short incorrect flow:
1) rsync
2) find
3) check_rsync_code
but MUST be:
1) rsync
2) check_rsync_code
3) find