catch rsync error

This commit is contained in:
Jan Schneider 2017-06-28 02:23:27 +02:00
parent 16c582b369
commit 2fde5ed287
1 changed files with 3 additions and 1 deletions

View File

@ -330,7 +330,9 @@ proc ::rmupdate::update_filesystems {image {dryrun 0}} {
mount_system_partition $sys_partition $mnt_sys
write_log "Rsyncing filesystem of partition ${sys_partition}."
exec rsync ${extra_args} --progress --archive --delete "${mnt_img}/" "${mnt_sys}"
if [catch {exec rsync ${extra_args} --progress --archive --delete "${mnt_img}/" "${mnt_sys}"} err] {
write_log $err
}
write_log "Rsync finished."
if {$img_partition == 1} {