clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit c0155ab7b6718569facd5847a9851a60834bae72
parent f26813c184d80627d47e9a79edbddd046c8aa14b
Author: Chris Down <chris@chrisdown.name>
Date:   Tue, 24 Mar 2020 13:50:11 +0000

clipmenu: Remove cache printout, with vacuuming this can't be hit

Diffstat:
Mclipmenu | 12+-----------
1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/clipmenu b/clipmenu @@ -48,18 +48,8 @@ else fi [[ $chosen_line ]] || exit 1 - file=$cache_dir/$(cksum <<< "$chosen_line") - -if ! [[ -f "$file" ]]; then - # We didn't find this in cache - printf 'FATAL: %s not in cache (%s missing)\n' "$chosen_line" "$file" >&2 - printf 'Please report the following debug information:\n\n' >&2 - wc -l "$cache_file" >&2 - grep -nFR "$chosen_line" "$cache_dir" >&2 - stat "$file" >&2 - exit 2 -fi +[[ -f "$file" ]] || exit 2 for selection in clipboard primary; do xsel --logfile /dev/null -i --"$selection" < "$file"