diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-04-10 10:56:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-04-10 10:56:12 +0200 |
commit | 4bda422547c31b3f890fda06f9d997fa6353abfd (patch) | |
tree | 5f71680ff58ba8ecc0758e4cb62d8a718b8473ba /fb.in | |
parent | 36868162c2e17d348d30954509d5281d6c2c1c03 (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.in | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |