Skip to content

Commit

Permalink
Stop trashing old app versions during update
Browse files Browse the repository at this point in the history
I'm tired of my trash folder being clogged with hundreds of these apps.
  • Loading branch information
Botspot committed Nov 6, 2023
1 parent ca95ebf commit c8fbf81
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions updater
Original file line number Diff line number Diff line change
Expand Up @@ -494,9 +494,6 @@ refresh_app() { #first arg is app name
#Set terminal title
[ "$no_status" != true ] && echo -ne "\e]0;Refreshing ${app}\a"

#move old program to trash - this allows app-developers to recover their work if update was accidental
gio trash "${DIRECTORY}/apps/${app}" 2>/dev/null
#failsafe
rm -rf "${DIRECTORY}/apps/${app}"

#copy new version from update/ to apps/
Expand Down

0 comments on commit c8fbf81

Please sign in to comment.