summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2013-10-19 08:46:48 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2013-10-19 08:46:48 +0000
commit86669f22d1480c51a101dc36d4368aa99ee5dae5 (patch)
treedbdda3e5916ec727ff1c5e115dfe941b58feee6e
parenta0c8a5a0c3b525b624762c2ab65d1357e8af42a4 (diff)
minor cleanup
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@651 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xpublish4
1 files changed, 2 insertions, 2 deletions
diff --git a/publish b/publish
index 32c8078..3186df6 100755
--- a/publish
+++ b/publish
@@ -280,9 +280,9 @@ if [ "$add_default_cs" -gt 0 ] ; then
shift
fi
-if command -v xclip >/dev/null 2>&1 && [ $DISPLAY ]; then
+if command -v xclip >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
echo -n "$main_uri" | xclip
-elif command -v xsel >/dev/null 2>&1 && [ $DISPLAY ]; then
+elif command -v xsel >/dev/null 2>&1 && [ -n "${DISPLAY:-}" ]; then
echo -n "$main_uri" | xsel
fi