From 2fde5ed28712b1245f38d02ca788f6ab0384527c Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 28 Jun 2017 02:23:27 +0200 Subject: [PATCH] catch rsync error --- addon/lib/rmupdate.tcl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index 0df976f..9527b95 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -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} {