From 44d7baa27a4adf93ce423dee8a40a1c862f7e26f Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 20 Feb 2018 11:36:00 +0000 Subject: [PATCH] Have CM_MAX_CLIPS understand new version 5 format --- clipmenud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipmenud b/clipmenud index 68c87fc..cc5adcc 100755 --- 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