plumber

simple plumber tool
git clone https://git.parazyd.org/plumber
Log | Files | Refs

commit 1b71bc811b31c4c4cc3a199d15803023d1e5681f
parent 0e69078b1129de305b6d4fc7cd470c486be5c2e8
Author: parazyd <parazyd@dyne.org>
Date:   Thu, 14 May 2020 02:36:16 +0200

Log empty clip in the switch.

Diffstat:
Mp | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/p b/p @@ -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 @@ -78,4 +72,9 @@ ssh://*) logger -s "plumber: no plumber for plumbed data" exit 1 ;; + +"") + logger -s "plumber: nothing to plumb" + exit 1 + ;; esac