diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-04-10 10:56:12 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2011-09-11 21:57:35 +0200 |
commit | eef51353da31f61fb10297b1c5ce453e01ebbfa7 (patch) | |
tree | faeab2099dfc27ca885753645a67c180a3ac46cd | |
parent | f2f3f3630ccdcc8a96f626c122cee722e1241cec (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.in | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |