mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
Clean up setup_state_files
This commit is contained in:
1 parent
d34293e2c8
commit
d53476399d
1 file changed
+2
-3
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user