tLog empty clip in the switch. - plumber - simple plumber tool HTML git clone https://git.parazyd.org/plumber DIR Log DIR Files DIR Refs --- DIR commit 1b71bc811b31c4c4cc3a199d15803023d1e5681f DIR parent 0e69078b1129de305b6d4fc7cd470c486be5c2e8 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 14 May 2020 02:36:16 +0200 Log empty clip in the switch. Diffstat: M p | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- DIR diff --git a/p b/p t@@ -4,18 +4,12 @@ # By parazyd # - if [ -n "$1" ]; then clip="$1" else clip="$(xclip -o)" fi -[ -n "$clip" ] || { - logger -s "plubmer: Nothing to plumb." - exit 1 -} - TERMCMD="st -e" case "$clip" in t@@ -78,4 +72,9 @@ ssh://*) logger -s "plumber: no plumber for plumbed data" exit 1 ;; + +"") + logger -s "plumber: nothing to plumb" + exit 1 + ;; esac