Catch parted exit code 1

This commit is contained in:
Jan Schneider 2018-02-28 11:33:04 +01:00
parent 078da49805
commit 819622fa49
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ proc ::rmupdate::get_partitions {{device ""}} {
set partitions(${dev}::0::size) $size
set data2 ""
catch {set data2 [exec /usr/sbin/parted $dev unit B print]}
catch {set data2 [exec /usr/sbin/parted $dev unit B print]} data2
foreach d2 [split $data2 "\n"] {
if {[regexp {^Model:\s*(\S.*)\s*$} $d2 match model]} {
set partitions(${dev}::0::model) $model