summaryrefslogtreecommitdiffstats
path: root/fb.in
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-04-10 10:56:12 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-04-10 10:56:12 +0200
commit4bda422547c31b3f890fda06f9d997fa6353abfd (patch)
tree5f71680ff58ba8ecc0758e4cb62d8a718b8473ba /fb.in
parent36868162c2e17d348d30954509d5281d6c2c1c03 (diff)
don't run xclip if $CLIPBOARD is emptyv0.7
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Diffstat (limited to 'fb.in')
-rw-r--r--fb.in4
1 files changed, 3 insertions, 1 deletions
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