summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
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"