From 4bda422547c31b3f890fda06f9d997fa6353abfd 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 --- fb.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fb.in b/fb.in index 9f1884f..17114df 100644 --- a/fb.in +++ b/fb.in @@ -191,7 +191,9 @@ else fi fi -[ "`type 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