mirror of
https://github.com/aclist/dztui.git
synced 2026-08-26 09:47:36 +02:00
Clean up setup_state_files
This commit is contained in:
parent
d34293e2c8
commit
d53476399d
5
dzgui.sh
5
dzgui.sh
@ -108,9 +108,8 @@ setup_state_files(){
|
||||
logger INFO "Migrating legacy version file"
|
||||
fi
|
||||
# wipe cache files
|
||||
local path="$cache_path"
|
||||
if find "$path" -mindepth 1 -maxdepth 1 | read; then
|
||||
for file in $path/*; do
|
||||
if [[ $(ls "$cache_path") ]]; then
|
||||
for file in "$cache_path"/*; do
|
||||
rm "$file"
|
||||
done
|
||||
logger INFO "Wiped cache files"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user