From 27494b7cb504f4d5eebfbaeef65fc984e78cd882 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sat, 24 Mar 2018 00:38:10 +0100 Subject: [PATCH] Fix firmware archive deletion --- addon/lib/rmupdate.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/lib/rmupdate.tcl b/addon/lib/rmupdate.tcl index 4a03754..814dd24 100644 --- a/addon/lib/rmupdate.tcl +++ b/addon/lib/rmupdate.tcl @@ -1072,6 +1072,7 @@ proc ::rmupdate::download_firmware {{download_url ""} {version ""}} { } exec /usr/bin/unzip "${archive_file}" "${img_file}" -o -d "${img_dir}" 2>/dev/null set img_file "${img_dir}/${img_file}" + file delete $archive_file } else { set img_file $archive_file } @@ -1082,7 +1083,6 @@ proc ::rmupdate::download_firmware {{download_url ""} {version ""}} { if {$img_file != $image_file} { file rename $img_file $image_file } - file delete $archive_file return $image_file }