commit 7aed22e1a748893c9711aaf96fc578e9b16adfb5 parent be7dcfb4dbd3ac6708545a2edb95cf175d6bf0fd Author: Chris Down <chris@chrisdown.name> Date: Mon, 23 Mar 2020 17:55:06 +0000 clipmenud: $cache_file must exist by vacuum time Diffstat:
M | clipmenud | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/clipmenud b/clipmenud @@ -150,8 +150,7 @@ while true; do fi done - if (( CM_MAX_CLIPS )) && [[ -f $cache_file ]] && - (( "$(wc -l < "$cache_file")" > CM_MAX_CLIPS_THRESH )); then + if (( CM_MAX_CLIPS )) && (( "$(wc -l < "$cache_file")" > CM_MAX_CLIPS_THRESH )); then info "Trimming clip cache to CM_MAX_CLIPS ($CM_MAX_CLIPS)" trunc_tmp=$(mktemp) tail -n "$CM_MAX_CLIPS" "$cache_file" | uniq > "$trunc_tmp"