Skip to content

Commit b663c70

Browse files
fix: LOGFILE -> LOG_FILE
1 parent 37742e7 commit b663c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

udroid/src/udroid.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ _reset() {
986986
# if confirmed, remove files
987987
clear_cache() {
988988
TITLE "> CLEAR CACHE"
989-
cache_size=$(du -sh -d 0 $DLCACHE | awk '{print $1}')
989+
cache_size=$(du -sh $DLCACHE | awk '{print $1}')
990990

991991
# check for files
992992
if [[ -z $(ls -A $DLCACHE) ]]; then
@@ -996,7 +996,7 @@ clear_cache() {
996996

997997
# ask for confirmation
998998
if ask "Do you want to clear cache?"; then
999-
rm -rvf $DLCACHE/* >> $LOGFILE
999+
rm -rvf $DLCACHE/* >> $LOG_FILE
10001000
echo "$cache_size cache cleared"
10011001
else
10021002
GWARN " ? cache not cleared"

0 commit comments

Comments
 (0)