File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,18 +94,20 @@ ui_print " - Please wait..."
9494
9595# GPU Cache Cleaner @tryigitx
9696gpu_cache_cleaner () {
97- local target_path=" $1 "
98- if [ -d " $target_path " ]; then
97+ if [ $# -gt 0 ]; then
9998 # Remove shader cache directories and GPU cache files
100- find " $target_path " \( -type d -name ' *shader_cache*' -prune -exec rm -rf {} \; \) -o \
101- \( -type f \( -name ' *shader*' -o -name ' *gpu_cache*' \) -exec rm -f {} \; \) 2> /dev/null
102- ui_print " - $target_path cleared 🧭"
99+ find " $@ " \( -type d -name ' *shader_cache*' -prune -exec rm -rf {} \; \) -o \
100+ \( -type f \( -name ' *shader*' -o -name ' *gpu_cache*' \) -exec rm -f {} \; \) 2> /dev/null || true
101+
102+ for path in " $@ " ; do
103+ if [ -d " $path " ]; then
104+ ui_print " - $path cleared 🧭"
105+ fi
106+ done
103107 fi
104108}
105109
106- gpu_cache_cleaner " /data/data"
107- gpu_cache_cleaner " /data/user_de"
108- gpu_cache_cleaner " /data/user"
110+ gpu_cache_cleaner " /data/data" " /data/user_de" " /data/user"
109111
110112ui_print " "
111113ui_print " - Please reboot 🎉"
You can’t perform that action at this time.
0 commit comments