mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
fix the wrong clean /tmp
This commit is contained in:
parent
da71a5a15a
commit
1f3a4d7155
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user