We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37742e7 commit b663c70Copy full SHA for b663c70
udroid/src/udroid.sh
@@ -986,7 +986,7 @@ _reset() {
986
# if confirmed, remove files
987
clear_cache() {
988
TITLE "> CLEAR CACHE"
989
- cache_size=$(du -sh -d 0 $DLCACHE | awk '{print $1}')
+ cache_size=$(du -sh $DLCACHE | awk '{print $1}')
990
991
# check for files
992
if [[ -z $(ls -A $DLCACHE) ]]; then
@@ -996,7 +996,7 @@ clear_cache() {
996
997
# ask for confirmation
998
if ask "Do you want to clear cache?"; then
999
- rm -rvf $DLCACHE/* >> $LOGFILE
+ rm -rvf $DLCACHE/* >> $LOG_FILE
1000
echo "$cache_size cache cleared"
1001
else
1002
GWARN " ? cache not cleared"
0 commit comments