From 0b003d4ad2b889e6a6201d3f4eeceaea254f0529 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Sun, 11 Mar 2018 20:24:37 -0400 Subject: [PATCH] Fix errant handling of specific-file deletion --- clipdel | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/clipdel b/clipdel index a0079cc..ebdc51b 100755 --- a/clipdel +++ b/clipdel @@ -57,14 +57,10 @@ else ) if (( CM_REAL_DELETE )); then - mapfile -t match_cksums < <( - for match in "${matches[@]}"; do cksum <<< "${line}"; done - ) - flock -x -w "$lock_timeout" "$lock_fd" || exit for match in "${matches[@]}"; do - ck=$(cksum <<< "$line") + ck=$(cksum <<< "$match") rm -f -- "$cache_dir/$ck" done