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

Catch parted exit code 1

This commit is contained in:
Jan Schneider 2018-02-28 11:33:04 +01:00
parent 078da49805
commit 819622fa49

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