1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00

catch rsync error

This commit is contained in:
Jan Schneider 2017-06-28 02:23:27 +02:00
parent 16c582b369
commit 2fde5ed287

View File

@ -330,7 +330,9 @@ proc ::rmupdate::update_filesystems {image {dryrun 0}} {
mount_system_partition $sys_partition $mnt_sys mount_system_partition $sys_partition $mnt_sys
write_log "Rsyncing filesystem of partition ${sys_partition}." 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." write_log "Rsync finished."
if {$img_partition == 1} { if {$img_partition == 1} {