clipmenu: Since we don't reuse line content, don't store it

This commit is contained in:
Chris Down 2020-03-23 17:52:57 +00:00
parent f9ab57522d
commit be7dcfb4db

View file

@ -170,8 +170,7 @@ while true; do
num_vacuumed=0
for file in "$cache_dir"/[012346789]*; do
cksum=${file##*/}
line=${cksums["$cksum"]-_missing_}
if [[ $line == _missing_ ]]; then
if [[ ${cksums["$cksum"]-_missing_} == _missing_ ]]; then
debug "Vacuuming due to lack of reference: $file"
(( ++num_vacuumed ))
rm -- "$file"