summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--bin/up.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/up.sh b/bin/up.sh
index 9cb77a2b..f55213d4 100644
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -62,14 +62,6 @@ uploadTerminal() {
 	upload "${temp}/term.html"
 }
 
-copy() {
-	if type xsel >/dev/null; then
-		xsel -bi
-	else
-		pbcopy
-	fi
-}
-
 while getopts 'chst' opt; do
 	case "$opt" in
 		(c) fn=uploadCommand;;
@@ -84,5 +76,5 @@ shift $((OPTIND - 1))
 : ${fn:=upload}
 
 url=$($fn "$@")
-printf '%s' "$url" | copy || true
+printf '%s' "$url" | pbcopy || true
 echo "$url"