clipmenu

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

commit 7f06b56775575c5c678bab2a1a99c8c4d0a8e662
parent 8388a00ab366dfa0660ed11d6560959a44686def
Author: Chris Down <chris@chrisdown.name>
Date:   Sun, 22 Apr 2018 10:17:49 +0100

clipdel: Give more helpful message if we didn't provide a pattern

Diffstat:
Mclipdel | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/clipdel b/clipdel @@ -44,6 +44,11 @@ fi raw_pattern=${@: -1} esc_pattern=${raw_pattern/\#/'\#'} +if ! [[ $raw_pattern ]]; then + printf '%s\n' 'No pattern provided, see --help' >&2 + exit 2 +fi + exec {lock_fd}> "$lock_file" if (( CM_REAL_DELETE )) && [[ "$raw_pattern" == ".*" ]]; then