Clean up setup_state_files

This commit is contained in:
Gergely Koloszar committed 2025-10-18 22:52:49 +02:00
1 parent d34293e2c8
commit d53476399d
1 file changed
+2 -3
+2 -3
View File
@@ -108,9 +108,8 @@ setup_state_files(){
logger INFO "Migrating legacy version file" logger INFO "Migrating legacy version file"
fi fi
# wipe cache files # wipe cache files
local path="$cache_path" if [[ $(ls "$cache_path") ]]; then
if find "$path" -mindepth 1 -maxdepth 1 | read; then for file in "$cache_path"/*; do
for file in $path/*; do
rm "$file" rm "$file"
done done
logger INFO "Wiped cache files" logger INFO "Wiped cache files"