From eef51353da31f61fb10297b1c5ce453e01ebbfa7 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 10 Apr 2011 10:56:12 +0200 Subject: don't run xclip if $CLIPBOARD is empty Signed-off-by: Florian Pritz Conflicts: fb.in Signed-off-by: Florian Pritz --- fb.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fb.in b/fb.in index de66aa1..b608597 100644 --- a/fb.in +++ b/fb.in @@ -184,7 +184,9 @@ else fi fi -[ "`which xclip 2>/dev/null`" ] && echo -n $CLIPBOARD | nohup xclip >/dev/null 2>&1 +if [ "$CLIPBOARD" != "" ]; then + [ "`type xclip 2>/dev/null`" ] && echo -n $CLIPBOARD | nohup xclip >/dev/null 2>&1 +fi exit $EXITCODE -- cgit v1.2.3-24-g4f1b