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

Fix deletion of images

This commit is contained in:
Jan Schneider 2017-11-20 08:08:20 +01:00
parent 96163444f2
commit e7e95f0e64

View File

@ -561,7 +561,8 @@ proc ::rmupdate::install_process_running {} {
proc ::rmupdate::delete_firmware_image {version} { proc ::rmupdate::delete_firmware_image {version} {
variable img_dir variable img_dir
eval {file delete [glob "${img_dir}/*${version}.img"]} eval {file delete [glob "${img_dir}/*${version}*.img"]}
catch { eval {file delete [glob "${img_dir}/*${version}*.zip"]} }
} }
proc ::rmupdate::install_firmware_version {version {reboot 1} {dryrun 0}} { proc ::rmupdate::install_firmware_version {version {reboot 1} {dryrun 0}} {