Skip to content

Commit

Permalink
app updates: once a successful update has occurred, delete all files …
Browse files Browse the repository at this point in the history
…that have been sitting in the temp directory
  • Loading branch information
decentjohn committed Apr 27, 2021
1 parent 958974c commit ee05c46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions de1plus/updater.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,12 @@ proc start_app_update {} {

if {$success == 1} {

catch {
# once a successful update has occured, delete all files that have been sitting in the temp directory
msg -INFO "app update successful, so deleting temp directory"
file delete -force $tmpdir
}

# if everything went well, go ahead and update the local timestamp and manifest to be the same as the remote one
if {$graphics_were_updated == 1} {

Expand Down

0 comments on commit ee05c46

Please sign in to comment.