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:
parent
078da49805
commit
819622fa49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user