summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-04-10 10:56:12 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-11 21:57:35 +0200
commiteef51353da31f61fb10297b1c5ce453e01ebbfa7 (patch)
treefaeab2099dfc27ca885753645a67c180a3ac46cd
parentf2f3f3630ccdcc8a96f626c122cee722e1241cec (diff)
don't run xclip if $CLIPBOARD is empty
Signed-off-by: Florian Pritz <bluewind@server-speed.net> Conflicts: fb.in Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--fb.in4
1 files changed, 3 insertions, 1 deletions
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