commit 44d7baa27a4adf93ce423dee8a40a1c862f7e26f
parent ee0a6f6d31a20d1c41279a1371c4fd32b70d4489
Author: Chris Down <chris@chrisdown.name>
Date: Tue, 20 Feb 2018 11:36:00 +0000
Have CM_MAX_CLIPS understand new version 5 format
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clipmenud b/clipmenud
@@ -222,7 +222,7 @@ while true; do
if (( CM_MAX_CLIPS )) && [[ -f $cache_file ]]; then
mapfile -t to_remove < <(
head -n -"$CM_MAX_CLIPS" "$cache_file" |
- while read -r line; do cksum <<< "$line"; done
+ while read -r line; do cksum <<< "${line#* }"; done
)
num_to_remove="${#to_remove[@]}"
if (( num_to_remove )); then