clipmenu

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

commit 764984c98285fc9071bd296fadec64d81681d7ea
parent 8538e01e5c3dff35172789e946d1a60df4ed658b
Author: Chris Down <chris@chrisdown.name>
Date:   Sat, 17 Oct 2020 00:58:20 +0100

clipmenu: Explicitly handle no $cache_file case

Diffstat:
Mclipmenu | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/clipmenu b/clipmenu @@ -28,6 +28,10 @@ EOF exit 0 fi +if ! [[ -f "$cache_file" ]]; then + printf '%s\n' 'No cache file yet, did you run clipmenud?' + exit 2 +fi # Blacklist of non-dmenu launchers launcher_args=(-l "${CM_HISTLENGTH}")