Skip to content

Commit

Permalink
fix the wrong clean /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Jun 9, 2024
1 parent f0778ed commit 7653c1d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions files/initrd/opt/rr/menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3298,14 +3298,10 @@ function updateMenu() {
###############################################################################
function cleanCache() {
if [ ! "${1}" = "-1" ]; then
(
rm -rfv "${PART3_PATH}/dl/"*
rm -rfv "${TMP_PATH}/"*
) 2>&1 | DIALOG --title "$(TEXT "Main menu")" \
rm -rfv "${PART3_PATH}/dl/"* 2>&1 | DIALOG --title "$(TEXT "Main menu")" \
--progressbox "$(TEXT "Cleaning cache ...")" 20 100
else
rm -rfv "${PART3_PATH}/dl/"*
rm -rfv "${TMP_PATH}/"*
fi
return 0
}
Expand Down

0 comments on commit 7653c1d

Please sign in to comment.