summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-12-05 14:32:16 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2009-12-05 14:32:16 +0000
commit5d13e0235126a1363b9d00b4418143e2e931ecbe (patch)
treeb68e0b489ddfd2ed58d52317c5436b10dd81df94 /publish
parentc92a99ce8289697e89ce1ff5e2634d11adfdc7cf (diff)
Another instance where we call xclip
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@432 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'publish')
-rwxr-xr-xpublish4
1 files changed, 3 insertions, 1 deletions
diff --git a/publish b/publish
index 45aeb25..d5b4876 100755
--- a/publish
+++ b/publish
@@ -177,7 +177,9 @@ while [ "$#" -gt 0 ]; do
trail="/"
uri="$base_http/$d_server_http_base/"
fi
- echo -n "$uri" | xclip
+ if which xclip >/dev/null 2>&1; then
+ echo -n "$uri" | xclip
+ fi
fi
echo "$uri"